aboutsummaryrefslogtreecommitdiff
path: root/build_odin.sh
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-04-22 20:50:44 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-05-07 16:52:46 +0200
commitf64e8ffd6465422528d1643c0b2e58f4722c646f (patch)
treec104935beab3dbbef42291a83e35304b3e19702e /build_odin.sh
parente3e04ffa22f11cb9b7fcb55ec91daad34137d61d (diff)
llvm-18: fix linking the compiler with clang-18
Diffstat (limited to 'build_odin.sh')
-rwxr-xr-xbuild_odin.sh2
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)"