summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-05-21 10:21:45 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-05-21 10:22:50 +0200
commit0e9101777fbbdaa83f5c4e1bf982a2871eae9d27 (patch)
tree3c0a74797ce874148626503d1eeba0a7bdedc9ca /config
parent09b8fbb75157ebc33e5a45c7f1e0fa483f363e9f (diff)
darwin.config: set sdk_path depending on whether it exists and not its version
Diffstat (limited to 'config')
-rw-r--r--config/darwin.config7
1 files changed, 3 insertions, 4 deletions
diff --git a/config/darwin.config b/config/darwin.config
index 3e785f6..68241be 100644
--- a/config/darwin.config
+++ b/config/darwin.config
@@ -51,11 +51,10 @@ SDK_VERSION = {
# to target the 10.5 SDK
sdk_version = min_osx_sdk_version or SDK_VERSION[distro_version]
-#Mountain Lion has a completely different path
-if sdk_version in ['10.8']:
+# For Xcode >= 4.3, the SDK is installed in a completely different path
+sdk_root = '/Developer/SDKs/MacOSX%s.sdk' % sdk_version
+if not os.path.exists(sdk_root):
sdk_root = '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX%s.sdk' % sdk_version
-else:
- sdk_root = '/Developer/SDKs/MacOSX%s.sdk' % sdk_version
sdk='-mmacosx-version-min=%s -isysroot %s' % (sdk_version, sdk_root)