diff options
| author | Mikkel Hjortshoej <fyoucon@gmail.com> | 2020-04-15 20:11:00 +0200 |
|---|---|---|
| committer | Mikkel Hjortshoej <fyoucon@gmail.com> | 2020-04-15 20:11:00 +0200 |
| commit | 2dcc986c4c829c505d2e3f70d2b7e289acfae5cf (patch) | |
| tree | 7c5af5afbe8102d3b30d0dbb2ab992eba60a2a6b | |
| parent | 550df8711f8cd6d91b3c732999da71e3a3031ec0 (diff) | |
Update /ci/build_ci.bat
| -rw-r--r-- | ci/build_ci.bat | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/ci/build_ci.bat b/ci/build_ci.bat index 53da20680..5d5b30a74 100644 --- a/ci/build_ci.bat +++ b/ci/build_ci.bat @@ -1,8 +1,11 @@ @echo off +:: Make sure this is a decent name and not generic 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= ^ -W4 -WX ^ -wd4100 -wd4101 -wd4127 -wd4189 ^ @@ -12,13 +15,17 @@ set compiler_warnings= ^ set compiler_includes= set libs= ^ - kernel32.lib + kernel32.lib ^ + bin\llvm\windows\LLVM-C.lib 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% -cl %compiler_settings% "src\main.cpp" ^ - /link %linker_settings% -OUT:%exe_name% ^ +del *.pdb > NUL 2> NUL +del *.ilk > NUL 2> NUL +cl %compiler_settings% "src\main.cpp" /link %linker_settings% -OUT:%exe_name% + +:end_of_build |