[cfe-commits] r76256 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Fri Jul 17 15:38:27 PDT 2009
Author: kremenek
Date: Fri Jul 17 17:38:26 2009
New Revision: 76256
URL: http://llvm.org/viewvc/llvm-project?rev=76256&view=rev
Log:
Add error message when clang-cc cannot be found.
Modified:
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=76256&r1=76255&r2=76256&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Fri Jul 17 17:38:26 2009
@@ -116,6 +116,10 @@
my %AvailableAnalyses;
# Query clang for analysis options.
+if (!-x $ClangCC) {
+ DieDiag("No executable 'clang-cc' found\n");
+}
+
open(PIPE, "-|", $ClangCC, "--help") or
DieDiag("Cannot execute '$ClangCC'\n");
More information about the cfe-commits
mailing list