diff options
author | Andrew Morrow <acm@mongodb.com> | 2017-05-20 12:07:47 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2017-05-22 19:19:36 -0400 |
commit | e40ab076f9858ed7555dc2e97f660edcbc3b9322 (patch) | |
tree | bcc10a1383a5a1fbb19a0f592133ab40b3399a44 /site_scons/site_tools | |
parent | cb1ea2ad2254ad9794138c366ef8737443dfc348 (diff) | |
download | mongo-e40ab076f9858ed7555dc2e97f660edcbc3b9322.tar.gz |
SERVER-29042 Propagate DEVELOPER_DIR when set
Diffstat (limited to 'site_scons/site_tools')
-rw-r--r-- | site_scons/site_tools/xcode.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/site_scons/site_tools/xcode.py b/site_scons/site_tools/xcode.py new file mode 100644 index 00000000000..9ec68c35470 --- /dev/null +++ b/site_scons/site_tools/xcode.py @@ -0,0 +1,12 @@ +import os + +def exists(env): + return env.Detect('xcrun') + +def generate(env): + if not exists(env): + return + + if 'DEVELOPER_DIR' in os.environ: + env['ENV']['DEVELOPER_DIR'] = os.environ['DEVELOPER_DIR'] + print "NOTE: Xcode detected; propagating DEVELOPER_DIR from shell environment to subcommands" |