[cfe-commits] r69638 - /cfe/trunk/lib/Driver/Driver.cpp
Daniel Dunbar
daniel at zuster.org
Mon Apr 20 17:25:11 PDT 2009
Author: ddunbar
Date: Mon Apr 20 19:25:10 2009
New Revision: 69638
URL: http://llvm.org/viewvc/llvm-project?rev=69638&view=rev
Log:
Look at the TMP environment variable as well.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=69638&r1=69637&r2=69638&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Mon Apr 20 19:25:10 2009
@@ -1114,6 +1114,8 @@
if (!TmpDir)
TmpDir = ::getenv("TEMP");
if (!TmpDir)
+ TmpDir = ::getenv("TMP");
+ if (!TmpDir)
TmpDir = "/tmp";
llvm::sys::Path P(TmpDir);
P.appendComponent("cc");
More information about the cfe-commits
mailing list