diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-04-22 20:50:44 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-05-07 16:52:46 +0200 |
| commit | f64e8ffd6465422528d1643c0b2e58f4722c646f (patch) | |
| tree | c104935beab3dbbef42291a83e35304b3e19702e /build_odin.sh | |
| parent | e3e04ffa22f11cb9b7fcb55ec91daad34137d61d (diff) | |
llvm-18: fix linking the compiler with clang-18
Diffstat (limited to 'build_odin.sh')
| -rwxr-xr-x | build_odin.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_odin.sh b/build_odin.sh index 328ac81bd..26f6393b3 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -65,7 +65,7 @@ Darwin) fi CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)" - LDFLAGS="$LDFLAGS -liconv -ldl -framework System -lLLVM -Wl,-rpath $($LLVM_CONFIG --libdir)" + LDFLAGS="$LDFLAGS -isysroot $(xcrun --show-sdk-path -sdk macosx) -liconv -ldl -framework System -lLLVM -Wl,-rpath $($LLVM_CONFIG --libdir)" ;; FreeBSD) CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)" |