From: Ted Kremenek Date: Fri, 11 Dec 2009 23:22:52 +0000 (+0000) Subject: scan-build: when the build command is 'make', override the CC and CXX options by... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fba85dc6509069ff7735283464bd02da2da6eeb;p=clang scan-build: when the build command is 'make', override the CC and CXX options by passing them as arguments to make. This fixes . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91179 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index 3cb2bb4a6d..518632e45b 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -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"); }