From: Daniel Dunbar Date: Tue, 21 Apr 2009 00:25:10 +0000 (+0000) Subject: Look at the TMP environment variable as well. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ca7ee9a40532167f67bde17fff5e678f183f3f2;p=clang 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 --- 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 @@ -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);