Fix context system; add more to -show-more-timings for LLVM API; Add ODIN_USE_LLVM_API global constant

This commit is contained in:
gingerBill
2020-03-08 12:34:36 +00:00
parent 8dc74a004c
commit 28502ba53b
6 changed files with 73 additions and 49 deletions
+3 -4
View File
@@ -49,15 +49,14 @@ del *.ilk > NUL 2> NUL
cl %compiler_settings% "src\main.cpp" ^
/link %linker_settings% -OUT:%exe_name% ^
&& odin build examples/demo/demo.odin -llvm-api -show-timings
rem && odin build examples/llvm-demo/demo.odin -llvm-api -show-timings
&& odin build examples/demo/demo.odin -llvm-api -show-more-timings
if %errorlevel% neq 0 (
goto end_of_build
)
link demo.obj kernel32.lib user32.lib /OUT:llvm_demo.exe ^
/nologo /incremental:no /opt:ref /subsystem:CONSOLE /defaultlib:libcmt -debug ^
&& llvm_demo
/nologo /incremental:no /opt:ref /subsystem:CONSOLE /defaultlib:libcmt -debug
rem && llvm_demo
del *.obj > NUL 2> NUL