diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-02-21 20:28:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-02-21 20:28:59 +0000 |
commit | 47135fe346b101c9bfb15c7309423fb57ec533f0 (patch) | |
tree | 2144818453c39865b03210fcd0e5b20c1ce22846 /tools | |
parent | 478bbf3171cc6ed10e544440b72413b3fdfbb0b6 (diff) |
[scan-build] Add quotes around clang executable name to handle path withs spaces. Fixes <rdar://problem/13254727>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/scan-build/scan-build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index bebed558b4..de28d90d0b 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -1553,7 +1553,8 @@ if ($displayHelp) { $ClangCXX = $Clang; $ClangCXX =~ s/\-\d+\.\d+$//; $ClangCXX .= "++"; -$ClangVersion = HtmlEscape(`$Clang --version`); +# Make sure to use "" to handle paths with spaces. +$ClangVersion = HtmlEscape(`"$Clang" --version`); # Determine where results go. $CmdArgs = HtmlEscape(join(' ', map(ShellEscape($_), @ARGV))); |