diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-02-25 22:54:02 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-02-25 22:54:02 +0000 |
commit | ce87b929703cac0b3f236b0b0d1c7b78d8af38f2 (patch) | |
tree | 40b4f8b903b30a0eaf4a06882ccd21705e1df0fe | |
parent | 48af2a9c1ed3259512f2d1431720add1fbe8fb5f (diff) |
scan-build now looks for ccc-analyzer first in the 'bin' subdirectory and then the directory where scan-build lives.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65483 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/scan-build | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/scan-build b/utils/scan-build index 6d43c3c962..ec5f830274 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -1149,10 +1149,11 @@ $HtmlDir = GetHTMLRunDir($HtmlDir); # Set the appropriate environment variables. SetHtmlEnv(\@ARGV, $HtmlDir); -my $Cmd = Cwd::realpath("$RealBin/ccc-analyzer"); - -DieDiag("Executable 'ccc-analyzer' does not exist at '$Cmd'\n") - if (! -x $Cmd); +my $Cmd = Cwd::realpath("$RealBin/bin/ccc-analyzer"); +if (!defined $Cmd || ! -x $Cmd) { + $Cmd = Cwd::realpath("$RealBin/ccc-analyzer"); + DieDiag("Executable 'ccc-analyzer' does not exist at '$Cmd'\n"); +} if (!defined $ClangSB || ! -x $ClangSB) { Diag("'clang' executable not found in '$RealBin/bin'.\n"); |