Compare commits
No commits in common. "d6eb651410ceb588d31501f80e335c08479660f8" and "d873ee19c11b7e010400d6fd7fcd0bfdb805a90b" have entirely different histories.
d6eb651410
...
d873ee19c1
0
detect_arch.sh
Executable file → Normal file
0
detect_arch.sh
Executable file → Normal file
0
detect_os.sh
Executable file → Normal file
0
detect_os.sh
Executable file → Normal file
2
kerep/build.sh
Executable file → Normal file
2
kerep/build.sh
Executable file → Normal file
@ -3,7 +3,7 @@ set -eo pipefail
|
|||||||
|
|
||||||
CMP="gcc"
|
CMP="gcc"
|
||||||
WARN="-std=c11 -Wall -Wno-discarded-qualifiers -Wno-unused-parameter"
|
WARN="-std=c11 -Wall -Wno-discarded-qualifiers -Wno-unused-parameter"
|
||||||
ARGS="-O2"
|
ARGS="-O2 -flto=auto -fpic -fdata-sections -ffunction-sections"
|
||||||
SRC="$(find src -name '*.c')"
|
SRC="$(find src -name '*.c')"
|
||||||
|
|
||||||
OS=$(../detect_os.sh)
|
OS=$(../detect_os.sh)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#include "Process.h"
|
#include "process.h"
|
||||||
|
|
||||||
#ifndef USE_WINDOWS_PROCESS_API
|
#ifndef USE_WINDOWS_PROCESS_API
|
||||||
|
|
||||||
@ -6,7 +6,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
extern int kill (__pid_t __pid, int __sig);
|
extern int kill (__pid_t __pid, int __sig) __THROW;
|
||||||
extern void * memset(void * __dst, int __val, size_t __n);
|
extern void * memset(void * __dst, int __val, size_t __n);
|
||||||
|
|
||||||
#define throw_if_negative(expr) if(expr < 0) throw(cptr_concat(#expr " exited with error ", toString_i64(errno)));
|
#define throw_if_negative(expr) if(expr < 0) throw(cptr_concat(#expr " exited with error ", toString_i64(errno)));
|
||||||
@ -96,4 +96,4 @@ i32 PipeHandle_read(PipeHandle pipe, char* buf, i32 bufsize){
|
|||||||
return read(pipe, buf, bufsize);
|
return read(pipe, buf, bufsize);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@ -1,4 +1,4 @@
|
|||||||
#include "Process.h"
|
#include "process.h"
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_PROCESS_API
|
#ifdef USE_WINDOWS_PROCESS_API
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
@ -138,4 +138,4 @@ i32 PipeHandle_read(PipeHandle pipe, char* buf, i32 bufsize){
|
|||||||
return bytesRead;
|
return bytesRead;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Loading…
Reference in New Issue
Block a user