diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-11-27 02:37:59 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-11-27 02:37:59 +0000 |
commit | 3fa3c44d624d2df9ef2649ca1a7efa97d81b36d8 (patch) | |
tree | cd102eaf84281b28fc778424f968a4c36aad5e87 /tools | |
parent | 6e99f9f56f320818d814a5474d76a2849e037c55 (diff) | |
download | clang-3fa3c44d624d2df9ef2649ca1a7efa97d81b36d8.tar.gz |
scan-build: Respect TMPDIR on all platforms, not just Darwin (PR14438).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/scan-build/scan-build | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index a13b235aa9..5bff0d95b6 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -110,13 +110,8 @@ sub GetHTMLRunDir { 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; } |