From: Ted Kremenek Date: Wed, 25 Feb 2009 22:54:02 +0000 (+0000) Subject: scan-build now looks for ccc-analyzer first in the 'bin' subdirectory and then the... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce87b929703cac0b3f236b0b0d1c7b78d8af38f2;p=clang 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 --- 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");