aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-01-15 15:38:15 +0000
committergingerBill <bill@gingerbill.org>2022-01-15 15:38:15 +0000
commitbb9c2f7aadb50b006cf25329015830d45e7f8cad (patch)
treefb5cad96fb24ad7f327478d8b3c0cc4c0cb92c65 /src/main.cpp
parent6aa80ee8e4fc8f96c24e9881a5833f14c86eff05 (diff)
parent0741bc37cc1637dee8d5c3cd45368af984b2f88a (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9aa9bd2ac..fe56d451f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -485,16 +485,16 @@ i32 linker_stage(lbGenerator *gen) {
// NOTE: If you change this (although this minimum is as low as you can go with Odin working)
// make sure to also change the 'mtriple' param passed to 'opt'
#if defined(GB_CPU_ARM)
- " -macosx_version_min 11.0.0 "
+ " -mmacosx-version-min=11.0.0 "
#else
- " -macosx_version_min 10.8.0 "
+ " -mmacosx-version-min=10.8.0 "
#endif
// This points the linker to where the entry point is
" -e _main "
#endif
, object_files, LIT(output_base), LIT(output_ext),
#if defined(GB_SYSTEM_OSX)
- "-lSystem -lm -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -L/usr/local/lib",
+ "-lSystem -lm -Wl,-syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -L/usr/local/lib",
#else
"-lc -lm",
#endif