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

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

Issue 2452593004: Correct iOS GN hermetic support. (Closed)
Patch Set: Changes for sdefresne 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
« no previous file with comments | « build/config/ios/rules.gni ('k') | ios/build/tools/setup-gn.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..35de9d128783ed7d86c0b0b6f971c782e05023d7 100755
--- a/build/toolchain/mac/linker_driver.py
+++ b/build/toolchain/mac/linker_driver.py
@@ -52,6 +52,13 @@ def Main(args):
if len(args) < 2:
raise RuntimeError("Usage: linker_driver.py [linker-invocation]")
+ for i in xrange(len(args)):
+ if args[i] != '--developer_dir':
+ continue
+ os.environ['DEVELOPER_DIR'] = args[i + 1]
+ del args[i:i+2]
+ break
+
# Collect arguments to the linker driver (this script) and remove them from
# the arguments being passed to the compiler driver.
linker_driver_actions = {}
« no previous file with comments | « build/config/ios/rules.gni ('k') | ios/build/tools/setup-gn.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698