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

Unified Diff: build/toolchain/mac/linker_driver.py

Issue 2452593004: Correct iOS GN hermetic support. (Closed)
Patch Set: 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/toolchain/mac/linker_driver.py
diff --git a/build/toolchain/mac/linker_driver.py b/build/toolchain/mac/linker_driver.py
index a6024f5ae2a39463968b59f4ef38ba08064f9a7d..d7804b1e71eb8e7f0af0498de26e77fa90d4f274 100755
--- a/build/toolchain/mac/linker_driver.py
+++ b/build/toolchain/mac/linker_driver.py
@@ -52,6 +52,11 @@ def Main(args):
if len(args) < 2:
raise RuntimeError("Usage: linker_driver.py [linker-invocation]")
+ if args[1] == "--developer_dir":
+ os.environ['DEVELOPER_DIR'] = args[2]
+ del args[2]
justincohen 2016/10/26 00:36:48 I didn't want to change linker_driver to something
sdefresne 2016/10/26 15:33:07 Can you instead iterate over the arguments then?
justincohen 2016/10/27 13:36:39 Done.
+ del args[1]
+
# Collect arguments to the linker driver (this script) and remove them from
# the arguments being passed to the compiler driver.
linker_driver_actions = {}

Powered by Google App Engine
This is Rietveld 408576698