aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to 'ci')
-rw-r--r--ci/build_ci.bat17
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