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

Unified Diff: build/config/mac/xcrun.py

Issue 2388063003: Add a variable use_system_xcode to GN. (Closed)
Patch Set: Comments from dpranke. Created 4 years, 2 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
Index: build/config/mac/xcrun.py
diff --git a/build/config/mac/xcrun.py b/build/config/mac/xcrun.py
index e2a775e51588bc58aea832544c35e2ef18cd5061..bdf15ffffc14f069b63acfefc00931942a699163 100644
--- a/build/config/mac/xcrun.py
+++ b/build/config/mac/xcrun.py
@@ -12,8 +12,13 @@ if __name__ == '__main__':
description='A script to execute a command via xcrun.')
parser.add_argument('--stamp', action='store', type=str,
help='Write a stamp file to this path on success.')
+ parser.add_argument('--developer_dir', required=False,
+ help='Path to Xcode.')
args, unknown_args = parser.parse_known_args()
+ if (args.developer_dir):
+ os.environ['DEVELOPER_DIR'] = args.developer_dir
+
rv = subprocess.check_call(['xcrun'] + unknown_args)
if rv == 0 and args.stamp:
if os.path.exists(args.stamp):

Powered by Google App Engine
This is Rietveld 408576698