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 | 16f3d8dcfb14803172778d3864496dae80481edc (patch) | |
tree | 73ec4247861544aa75e702b8deb5d79724667300 | |
parent | a49de9de2ee5922f7609c8a594f4cd097bdec129 (diff) | |
download | bcm5719-llvm-16f3d8dcfb14803172778d3864496dae80481edc.tar.gz bcm5719-llvm-16f3d8dcfb14803172778d3864496dae80481edc.zip |
scan-build now looks for ccc-analyzer first in the 'bin' subdirectory and then the directory where scan-build lives.
llvm-svn: 65483
-rwxr-xr-x | clang/utils/scan-build | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/utils/scan-build b/clang/utils/scan-build index 6d43c3c9626..ec5f830274f 100755 --- a/clang/utils/scan-build +++ b/clang/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"); |