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 = {} |