[cfe-commits] r168672 - /cfe/trunk/tools/scan-build/scan-build
Jordan Rose
jordan_rose at apple.com
Mon Nov 26 18:37:59 PST 2012
Author: jrose
Date: Mon Nov 26 20:37:59 2012
New Revision: 168672
URL: http://llvm.org/viewvc/llvm-project?rev=168672&view=rev
Log:
scan-build: Respect TMPDIR on all platforms, not just Darwin (PR14438).
Modified:
cfe/trunk/tools/scan-build/scan-build
Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=168672&r1=168671&r2=168672&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Mon Nov 26 20:37:59 2012
@@ -110,13 +110,8 @@
my $Dir = shift @_;
my $TmpMode = 0;
if (!defined $Dir) {
- if (`uname` =~ /Darwin/) {
- $Dir = $ENV{'TMPDIR'};
- if (!defined $Dir) { $Dir = "/tmp"; }
- }
- else {
- $Dir = "/tmp";
- }
+ $Dir = $ENV{'TMPDIR'};
+ if (!defined $Dir) { $Dir = "/tmp"; }
$TmpMode = 1;
}
More information about the cfe-commits
mailing list