[cfe-commits] r91179 - /cfe/trunk/tools/scan-build/scan-build

Ted Kremenek kremenek at apple.com
Fri Dec 11 15:22:52 PST 2009


Author: kremenek
Date: Fri Dec 11 17:22:52 2009
New Revision: 91179

URL: http://llvm.org/viewvc/llvm-project?rev=91179&view=rev
Log:
scan-build: when the build command is 'make', override the CC and CXX options by passing them as arguments to make.  This fixes <rdar://problem/6790224>.

Modified:
    cfe/trunk/tools/scan-build/scan-build

Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=91179&r1=91178&r2=91179&view=diff

==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Fri Dec 11 17:22:52 2009
@@ -807,6 +807,8 @@
   }
   elsif ($IgnoreErrors) {
     if ($Cmd eq "make" or $Cmd eq "gmake") {
+      AddIfNotPresent($Args, "CC=$CCAnalyzer");
+      AddIfNotPresent($Args, "CXX=$CCAnalyzer");
       AddIfNotPresent($Args,"-k");
       AddIfNotPresent($Args,"-i");
     }





More information about the cfe-commits mailing list