Skip to content
Snippets Groups Projects
Commit f5303fe4 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

scan-build: when the build command is 'make', override the CC and CXX options...

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
parent 0910cf54
No related branches found
No related tags found
No related merge requests found
...@@ -807,6 +807,8 @@ sub RunBuildCommand { ...@@ -807,6 +807,8 @@ sub RunBuildCommand {
} }
elsif ($IgnoreErrors) { elsif ($IgnoreErrors) {
if ($Cmd eq "make" or $Cmd eq "gmake") { if ($Cmd eq "make" or $Cmd eq "gmake") {
AddIfNotPresent($Args, "CC=$CCAnalyzer");
AddIfNotPresent($Args, "CXX=$CCAnalyzer");
AddIfNotPresent($Args,"-k"); AddIfNotPresent($Args,"-k");
AddIfNotPresent($Args,"-i"); AddIfNotPresent($Args,"-i");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment