aboutsummaryrefslogtreecommitdiff
path: root/build_odin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build_odin.sh')
-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