]> granicus.if.org Git - clang/commitdiff
scan-build now looks for ccc-analyzer first in the 'bin' subdirectory and then the...
authorTed Kremenek <kremenek@apple.com>
Wed, 25 Feb 2009 22:54:02 +0000 (22:54 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 25 Feb 2009 22:54:02 +0000 (22:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65483 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index 6d43c3c9626f4fafa5610c102a5de8d4be27e048..ec5f830274fe0b8007603109518de4a4249231d5 100755 (executable)
@@ -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");