mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
darwin: fix sysroot retrieval for some systems
Got a report on Discord that the current way didn't work for a user, this change did work and I confirmed with @harold-b (who initially added this) that it also works for them and is actually a better way.
This commit is contained in:
+2
-2
@@ -71,8 +71,8 @@ Darwin)
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
darwin_sysroot=
|
darwin_sysroot=
|
||||||
if [ $(which xcode-select) ]; then
|
if [ $(which xcrun) ]; then
|
||||||
darwin_sysroot="--sysroot $(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
|
darwin_sysroot="--sysroot $(xcrun --sdk macosx --show-sdk-path)"
|
||||||
elif [[ -e "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" ]]; then
|
elif [[ -e "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" ]]; then
|
||||||
darwin_sysroot="--sysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
|
darwin_sysroot="--sysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user