Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: build/mac/find_sdk.py

Issue 136793020: Get the proper Mac SDK path for the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better comment. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/mac/mac_sdk.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/mac/find_sdk.py
diff --git a/build/mac/find_sdk.py b/build/mac/find_sdk.py
index 067be638d21c55b083780e2a57b9034508f3486b..1d7634391fa4d66b2baeec276429836c39d53283 100755
--- a/build/mac/find_sdk.py
+++ b/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
« no previous file with comments | « build/config/mac/mac_sdk.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698