Kaydet (Commit) 286f991e authored tarafından Tor Lillqvist's avatar Tor Lillqvist

When using --with-macosx-sdk=10.8 or 9, use xcode-select -print-path

I want to be able to use of a separate Xcode installation (like a
developer preview) instead of the /Applications/Xcode.app one.

Change-Id: I1faa84d028a8df6b4fc61b321fd2a6cde9a0ab0f
üst 95d5922c
...@@ -2701,14 +2701,10 @@ if test $_os = Darwin; then ...@@ -2701,14 +2701,10 @@ if test $_os = Darwin; then
fi fi
;; ;;
10.8|10.9) 10.8|10.9)
if test -d "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk"; then
MACOSX_SDK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk
else
xcodepath="`xcode-select -print-path`" xcodepath="`xcode-select -print-path`"
if test -d "$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk"; then if test -d "$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk"; then
MACOSX_SDK_PATH="$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk" MACOSX_SDK_PATH="$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk"
fi fi
fi
;; ;;
esac esac
if test -z "$MACOSX_SDK_PATH"; then if test -z "$MACOSX_SDK_PATH"; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment