aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-05-30 11:13:32 +0100
committerGitHub <noreply@github.com>2024-05-30 11:13:32 +0100
commit539160596107bc5a17a1286dee998c02683f0a87 (patch)
tree94e4bccae016a6a6a872d041c0c0bdd690c5a186
parentba8672ad29b8c32afee761d5b00d4014bb591871 (diff)
parenteeb057b76d8689dcff9d0bee44fbfcdfb07e8bc7 (diff)
Merge pull request #3654 from laytan/darwin-fix-sdkpath
darwin: fix sysroot retrieval for some systems
-rwxr-xr-xbuild_odin.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build_odin.sh b/build_odin.sh
index ec65bb49d..d2f865e24 100755
--- a/build_odin.sh
+++ b/build_odin.sh
@@ -71,8 +71,8 @@ Darwin)
fi
darwin_sysroot=
- if [ $(which xcode-select) ]; then
- darwin_sysroot="--sysroot $(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
+ if [ $(which xcrun) ]; then
+ darwin_sysroot="--sysroot $(xcrun --sdk macosx --show-sdk-path)"
elif [[ -e "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" ]]; then
darwin_sysroot="--sysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
else