summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
Diffstat (limited to 'site_scons')
-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"