diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-01-14 17:05:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-14 17:05:28 +0100 |
| commit | 0741bc37cc1637dee8d5c3cd45368af984b2f88a (patch) | |
| tree | 995b188d903a4824bf830cd250ede2a214642c48 /src | |
| parent | e27710294789293f6e41b6934dff5a47b0974af5 (diff) | |
| parent | c6ed3fa4b5aca2a5e2b444c6b9cd4f8d2ca8f3e1 (diff) | |
Merge pull request #1427 from oskarnp/macos-linker-fix
Fix invalid linker flags passed to clang on macOS
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 6 |
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 |