aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-21 00:25:10 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-21 00:25:10 +0000
commit3ca7ee9a40532167f67bde17fff5e678f183f3f2 (patch)
treec8882ac14a3dc2a5bcd85e9f181d97b275cd7124 /lib/Driver/Driver.cpp
parent912f39185102bc6b6dd75376f28bfed2f37ca326 (diff)
Look at the TMP environment variable as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index f0eadf7962..d88f1b3598 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1114,6 +1114,8 @@ std::string Driver::GetTemporaryPath(const char *Suffix) const {
if (!TmpDir)
TmpDir = ::getenv("TEMP");
if (!TmpDir)
+ TmpDir = ::getenv("TMP");
+ if (!TmpDir)
TmpDir = "/tmp";
llvm::sys::Path P(TmpDir);
P.appendComponent("cc");