mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 12:30:28 +00:00
Toggle tilde backend in the build script
This commit is contained in:
10
build.bat
10
build.bat
@@ -78,8 +78,14 @@ set compiler_includes= ^
|
||||
set libs= ^
|
||||
kernel32.lib ^
|
||||
Synchronization.lib ^
|
||||
bin\llvm\windows\LLVM-C.lib ^
|
||||
src\tilde\tb.lib
|
||||
bin\llvm\windows\LLVM-C.lib
|
||||
|
||||
set tilde_backend=0
|
||||
if %tilde_backend% EQU 1 (
|
||||
set libs=%libs% src\tilde\tb.lib
|
||||
set compiler_defines=%compiler_defines% -DODIN_TILDE_BACKEND
|
||||
)
|
||||
|
||||
|
||||
set linker_flags= -incremental:no -opt:ref -subsystem:console
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ gb_global Timings global_timings = {0};
|
||||
|
||||
#include "linker.cpp"
|
||||
|
||||
#if defined(GB_SYSTEM_WINDOWS)
|
||||
#if defined(GB_SYSTEM_WINDOWS) && defined(ODIN_TILDE_BACKEND)
|
||||
#define ALLOW_TILDE 1
|
||||
#else
|
||||
#define ALLOW_TILDE 0
|
||||
|
||||
Reference in New Issue
Block a user