@@ -9,7 +9,7 @@
#include "bx.h"
#include "cpu.h"
#include "mutex.h"
-#include "sem.h"
+#include "semaphore.h"
#include "uint32_t.h"
#include <list>
@@ -7,7 +7,7 @@
#define BX_THREAD_H_HEADER_GUARD
#if BX_CONFIG_SUPPORTS_THREADING
@@ -730,6 +730,31 @@ function toolchain(_buildDir, _libDir)
buildoptions {
"-mfpmath=sse",
}
+--[[
+ defines { "BX_CRT_NONE" }
+
+ buildoptions {
+ "-nostdlib",
+ "-nodefaultlibs",
+ "-nostartfiles",
+ "-Wa,--noexecstack",
+ "-ffreestanding",
+ "-mpreferred-stack-boundary=4",
+ "-mstackrealign",
+ }
+ linkoptions {
+--]]
configuration { "linux-gcc* or linux-clang*" }
@@ -3,7 +3,7 @@
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
*/
-#include <bx/sem.h>
+#include <bx/semaphore.h>