aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorZachary Pierson <zacpiersonhehe@gmail.com>2017-04-02 18:42:58 -0500
committerZachary Pierson <zacpiersonhehe@gmail.com>2017-04-02 18:42:58 -0500
commitc9c82da1f3d809b1638daeddf9f1f7dfe9866eb5 (patch)
tree55c6cbf3e34ef8269a7fd9b75f0333e83169865e /src/main.c
parentce0d874efd3bdd2cbfd24ca5b10c9326774c1530 (diff)
It's terrible, but I added _some_ form of launch args support for Linux/macOS
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 6c2167802..17ea379a0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -278,7 +278,7 @@ int main(int argc, char **argv) {
// 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\" -o \"%.*s\".bc "
+ "/usr/local/opt/llvm/bin/opt \"%s\" -o \"%.*s\".bc "
"-mem2reg "
"-memcpyopt "
"-die "
@@ -365,7 +365,7 @@ int main(int argc, char **argv) {
timings_start_section(&timings, str_lit("llvm-llc"));
// For more arguments: http://llvm.org/docs/CommandGuide/llc.html
exit_code = system_exec_command_line_app("llc", false,
- "llc \"%.*s.bc\" -filetype=obj -O%d "
+ "/usr/local/opt/llvm/bin/llc \"%.*s.bc\" -filetype=obj -O%d "
"%.*s "
// "-debug-pass=Arguments "
"",
@@ -424,7 +424,7 @@ int main(int argc, char **argv) {
}
#if defined(GB_SYSTEM_OSX)
- linker = "ld";
+ linker = "/usr/bin/ld";
#else
// TODO(zangent): Figure out how to make ld work on Linux.
// It probably has to do with including the entire CRT, but