]> granicus.if.org Git - clang/commitdiff
Look at the TMP environment variable as well.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 21 Apr 2009 00:25:10 +0000 (00:25 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 21 Apr 2009 00:25:10 +0000 (00:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69638 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index f0eadf7962d41f1de0ad0470a1ba97b56683488e..d88f1b359857a130b5d7bb6dbcb92c283c1934b6 100644 (file)
@@ -1113,6 +1113,8 @@ std::string Driver::GetTemporaryPath(const char *Suffix) const {
   const char *TmpDir = ::getenv("TMPDIR");
   if (!TmpDir)
     TmpDir = ::getenv("TEMP");
+  if (!TmpDir)
+    TmpDir = ::getenv("TMP");
   if (!TmpDir)
     TmpDir = "/tmp";
   llvm::sys::Path P(TmpDir);