]> granicus.if.org Git - clang/commitdiff
scan-build: when the build command is 'make', override the CC and CXX options by...
authorTed Kremenek <kremenek@apple.com>
Fri, 11 Dec 2009 23:22:52 +0000 (23:22 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 11 Dec 2009 23:22:52 +0000 (23:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91179 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/scan-build

index 3cb2bb4a6dc11b0cbd7e182cebaf5861daaf8840..518632e45bc30ce125a67252f25e8b763a6c59c7 100755 (executable)
@@ -807,6 +807,8 @@ sub RunBuildCommand {
   }
   elsif ($IgnoreErrors) {
     if ($Cmd eq "make" or $Cmd eq "gmake") {
+      AddIfNotPresent($Args, "CC=$CCAnalyzer");
+      AddIfNotPresent($Args, "CXX=$CCAnalyzer");
       AddIfNotPresent($Args,"-k");
       AddIfNotPresent($Args,"-i");
     }