summaryrefslogtreecommitdiffstats
path: root/chromium/build/mac/find_sdk.py
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/build/mac/find_sdk.py')
-rwxr-xr-xchromium/build/mac/find_sdk.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/build/mac/find_sdk.py b/chromium/build/mac/find_sdk.py
index 067be638d21..1d7634391fa 100755
--- a/chromium/build/mac/find_sdk.py
+++ b/chromium/build/mac/find_sdk.py
@@ -31,6 +31,9 @@ def main():
parser.add_option("--sdk_path",
action="store", type="string", dest="sdk_path", default="",
help="user-specified SDK path; bypasses verification")
+ parser.add_option("--print_sdk_path",
+ action="store_true", dest="print_sdk_path", default=False,
+ help="Additionaly print the path the SDK (appears first).")
(options, args) = parser.parse_args()
min_sdk_version = args[0]
@@ -73,6 +76,10 @@ def main():
print >>sys.stderr, ''
return min_sdk_version
+ if options.print_sdk_path:
+ print subprocess.check_output(['xcodebuild', '-version', '-sdk',
+ 'macosx' + best_sdk, 'Path']).strip()
+
return best_sdk