summaryrefslogtreecommitdiff
path: root/site_scons/site_tools
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2017-05-20 12:07:47 -0400
committerAndrew Morrow <acm@mongodb.com>2017-05-22 19:19:36 -0400
commite40ab076f9858ed7555dc2e97f660edcbc3b9322 (patch)
treebcc10a1383a5a1fbb19a0f592133ab40b3399a44 /site_scons/site_tools
parentcb1ea2ad2254ad9794138c366ef8737443dfc348 (diff)
downloadmongo-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.py12
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"