Compile with odin.exe and no run.bat

This is win32 only and requires CreateProcessA
This commit is contained in:
gingerBill
2016-08-16 12:33:11 +01:00
parent 6f7f82d877
commit 5da6b74567
9 changed files with 320 additions and 57 deletions
-14
View File
@@ -2,17 +2,3 @@
rem call clang -c -emit-llvm -DGB_IMPLEMENTATION -DGB_DEF=GB_DLL_EXPORT ..\src\gb\gb.h
pushd ..\examples
call ..\bin\odin.exe ..\examples/main.odin ^
&& opt -mem2reg main.ll -o main.bc ^
&& clang main.bc -o main.exe ^
-Wno-override-module -lkernel32.lib -luser32.lib ^
&& main.exe
popd
rem && llvm-dis ..\examples/main.bc -o - ^
rem call ..\misc\llvm-bin\opt.exe -mem2reg ..\examples/output.ll > ..\examples/main.bc
rem call llc ..\examples/main.bc
rem call llvm-dis ..\examples/main.bc -o ..\examples/output.ll
rem call clang ..\examples/main.c -O0 -S -emit-llvm -o ..\examples/main-c.ll