Browse Source

Update /ci/build_ci.bat

Mikkel Hjortshoej 5 years ago
parent
commit
2dcc986c4c
1 changed files with 12 additions and 5 deletions
  1. 12 5
      ci/build_ci.bat

+ 12 - 5
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