summaryrefslogtreecommitdiff
path: root/build/gyp
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-02-23 15:20:26 -0800
committerWei Li <weili@chromium.org>2016-02-23 15:20:26 -0800
commitad8dfc5fe0b5d726632b71919426c1efeb33c567 (patch)
treee1a832b99aefd875b1c4b66859ca8e32e0f9a6a9 /build/gyp
parentad02964dc0bdba4001037fa83f0b9714544f4786 (diff)
downloadpdfium-ad8dfc5fe0b5d726632b71919426c1efeb33c567.tar.xz
Allow compilation on mac with older sdk versions
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1725033002 .
Diffstat (limited to 'build/gyp')
-rw-r--r--build/gyp/tools/mac_find_sdk.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/gyp/tools/mac_find_sdk.py b/build/gyp/tools/mac_find_sdk.py
index 230c2fd52e..230b8351ff 100644
--- a/build/gyp/tools/mac_find_sdk.py
+++ b/build/gyp/tools/mac_find_sdk.py
@@ -62,7 +62,9 @@ def main():
sdks = [s for s in sdks # ['10.5', '10.6'] => ['10.6']
if parse_version(s) >= parse_version(min_sdk_version)]
if not sdks:
- raise Exception('No %s+ SDK found' % min_sdk_version)
+ # Not raising an exception to allow older version to run.
+ # TODO(weili): remove this once we no longer support older versions.
+ return min_sdk_version
best_sdk = sorted(sdks, key=parse_version)[0]
if options.verify and best_sdk != min_sdk_version and not options.sdk_path: