mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Update /ci/build_ci.bat
This commit is contained in:
+12
-5
@@ -1,8 +1,11 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
:: Make sure this is a decent name and not generic
|
||||||
set exe_name=odin.exe
|
set exe_name=odin.exe
|
||||||
|
|
||||||
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -GS- -EHsc- -GR- -O2 -MT -Z7 -DNO_ARRAY_BOUNDS_CHECK
|
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -EHsc- -GR- -GF -O2 -MT -Z7
|
||||||
|
set compiler_defines= -DLLVM_BACKEND_SUPPORT -DNO_ARRAY_BOUNDS_CHECK
|
||||||
|
|
||||||
set compiler_warnings= ^
|
set compiler_warnings= ^
|
||||||
-W4 -WX ^
|
-W4 -WX ^
|
||||||
-wd4100 -wd4101 -wd4127 -wd4189 ^
|
-wd4100 -wd4101 -wd4127 -wd4189 ^
|
||||||
@@ -12,13 +15,17 @@ set compiler_warnings= ^
|
|||||||
|
|
||||||
set compiler_includes=
|
set compiler_includes=
|
||||||
set libs= ^
|
set libs= ^
|
||||||
kernel32.lib
|
kernel32.lib ^
|
||||||
|
bin\llvm\windows\LLVM-C.lib
|
||||||
|
|
||||||
set linker_flags= -incremental:no -opt:ref -subsystem:console -debug
|
set linker_flags= -incremental:no -opt:ref -subsystem:console -debug
|
||||||
|
|
||||||
set compiler_settings=%compiler_includes% %compiler_flags% %compiler_warnings%
|
set compiler_settings=%compiler_includes% %compiler_flags% %compiler_warnings% %compiler_defines%
|
||||||
set linker_settings=%libs% %linker_flags%
|
set linker_settings=%libs% %linker_flags%
|
||||||
|
|
||||||
cl %compiler_settings% "src\main.cpp" ^
|
del *.pdb > NUL 2> NUL
|
||||||
/link %linker_settings% -OUT:%exe_name% ^
|
del *.ilk > NUL 2> NUL
|
||||||
|
|
||||||
|
cl %compiler_settings% "src\main.cpp" /link %linker_settings% -OUT:%exe_name%
|
||||||
|
|
||||||
|
:end_of_build
|
||||||
|
|||||||
Reference in New Issue
Block a user