summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-04-07 20:16:07 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-04-07 20:24:45 (GMT)
commit30ea03eb33cb6e33036c7a7011c2df78cff31025 (patch)
tree696f0eb3291e3f881f2f69df0c14c069e1c78046
parent7ad73a099f4e3e55cbafd004df3eb8d4007efb20 (diff)
downloadswift-30ea03eb33cb6e33036c7a7011c2df78cff31025.zip
swift-30ea03eb33cb6e33036c7a7011c2df78cff31025.tar.bz2
Avoid build failing when TMP environment variable is not set.
-rw-r--r--BuildTools/SCons/SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 8cb21c2..3f441cb 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -47,7 +47,8 @@ if env["PLATFORM"] == "darwin" :
if env["PLATFORM"] == "win32" :
env.Tool("WindowsBundle", toolpath = ["#/BuildTools/SCons/Tools"])
#So we don't need to escalate with UAC
- env['ENV']['TMP'] = os.environ['TMP']
+ if "TMP" is os.environ.keys() :
+ env['ENV']['TMP'] = os.environ['TMP']
# Override SConscript to handle tests
oldSConscript = SConscript