summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-02-24 13:00:06 -0800
committerWei Li <weili@chromium.org>2016-02-24 13:00:06 -0800
commit78acf705deed600937b40697e5fbf93111a76d24 (patch)
tree6306d3b417600b131c88ac71f7325ed86cf51186
parent320510d590f4e8df3a4725a87b54446c7009e57e (diff)
downloadpdfium-78acf705deed600937b40697e5fbf93111a76d24.tar.xz
Enforce compilation with sdk newer than or same as minimal sdk version on mac. Now the minimal version is 10.10.
This reverts commit ad8dfc5fe0b5d726632b71919426c1efeb33c567. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1735653002 .
-rw-r--r--build/gyp/tools/mac_find_sdk.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/build/gyp/tools/mac_find_sdk.py b/build/gyp/tools/mac_find_sdk.py
index 230b8351ff..230c2fd52e 100644
--- a/build/gyp/tools/mac_find_sdk.py
+++ b/build/gyp/tools/mac_find_sdk.py
@@ -62,9 +62,7 @@ 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:
- # 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
+ raise Exception('No %s+ SDK found' % 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: