diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-12-11 23:22:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-12-11 23:22:52 +0000 |
commit | 6fba85dc6509069ff7735283464bd02da2da6eeb (patch) | |
tree | d096f21f3b4077413b84cb297a213539144f1e16 | |
parent | 69cfd86cd21e7bb8fd4afbc8a65bdae72378fd4c (diff) |
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>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91179 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | tools/scan-build/scan-build | 2 |
1 files changed, 2 insertions, 0 deletions
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"); } |