Chromium Code Reviews| 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 = {} |