diff options
| author | gingerBill <bill@gingerbill.org> | 2018-01-21 14:30:48 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-01-21 14:30:48 +0000 |
| commit | 88ba6d8015966d1a16806b31382d2663add74efc (patch) | |
| tree | 438116b9008e8bc0458de8a165773220ef7c7b39 /src/main.cpp | |
| parent | 8b288a207254112a3b42ecbef46cecef9f28e811 (diff) | |
`enum #export`
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index be5dd4669..1f2ffd17c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -723,7 +723,7 @@ int main(int arg_count, char **arg_ptr) { #if defined(GB_SYSTEM_WINDOWS) // For more passes arguments: http://llvm.org/docs/Passes.html exit_code = system_exec_command_line_app("llvm-opt", false, - "\"%.*sbin/opt\" \"%.*s\".ll -o \"%.*s\".bc %.*s " + "\"%.*sbin/opt\" \"%.*s.ll\" -o \"%.*s.bc\" %.*s " "-mem2reg " "-memcpyopt " "-die " @@ -731,6 +731,11 @@ int main(int arg_count, char **arg_ptr) { LIT(build_context.ODIN_ROOT), LIT(output_base), LIT(output_base), LIT(build_context.opt_flags)); + // exit_code = system_exec_command_line_app("llvm-opt", false, + // "\"%.*sbin/llvm-as\" \"%.*s.ll\" -o \"%.*s.bc\" " + // "", + // LIT(build_context.ODIN_ROOT), + // LIT(output_base), LIT(output_base)); if (exit_code != 0) { return exit_code; } @@ -738,7 +743,7 @@ int main(int arg_count, char **arg_ptr) { // NOTE(zangent): This is separate because it seems that LLVM tools are packaged // with the Windows version, while they will be system-provided on MacOS and GNU/Linux exit_code = system_exec_command_line_app("llvm-opt", false, - "opt \"%.*s.ll\" -o \"%.*s\".bc %.*s " + "opt \"%.*s.ll\" -o \"%.*s.bc\" %.*s " "-mem2reg " "-memcpyopt " "-die " |