tcc build for linux, basic changes

This commit is contained in:
Krzosa Karol
2026-03-07 15:11:00 +01:00
parent e69684c877
commit 410ecf02ee
2 changed files with 7 additions and 13 deletions

View File

@@ -259,12 +259,14 @@ int IsDebuggerPresent(void);
#elif PLATFORM_WASM
void wasm_trap(void);
#define debug__break() wasm_trap()
#elif PLATFORM_TCC
#define debug__break() raise(SIGTRAP)
#else
#define debug__break() __builtin_trap()
#endif
#define debug_break() (debug__break(), 1)
#if PLATFORM_WASM
#if PLATFORM_WASM | PLATFORM_TCC
#define gb_thread
#elif PLATFORM_GCC | PLATFORM_CLANG
#define gb_thread __thread