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>.

llvm-svn: 91179
This commit is contained in:
Ted Kremenek 2009-12-11 23:22:52 +00:00
parent 0910cf54ac
commit f5303fe492
1 changed files with 2 additions and 0 deletions

View File

@ -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");
}