]> granicus.if.org Git - clang/commitdiff
Pass -m32 and -m64 to the static analyzer when using scan-build. Now we can
authorCharles Davis <cdavis@mines.edu>
Tue, 2 Mar 2010 15:26:41 +0000 (15:26 +0000)
committerCharles Davis <cdavis@mines.edu>
Tue, 2 Mar 2010 15:26:41 +0000 (15:26 +0000)
use scan-build with Wine, for example.

Ted, I hope this is OK.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97566 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index 8c64d3ffefda64ec24d756aea84b526f46460103..e3db5eab326ea15815f906724b19fe87b5d5633f 100755 (executable)
@@ -339,6 +339,8 @@ my %LinkerOptionMap = (
 my %CompilerLinkerOptionMap = (
   '-isysroot' => 1,
   '-arch' => 1,
+  '-m32' => 0,
+  '-m64' => 0,
   '-v' => 0,
   '-fpascal-strings' => 0,
   '-mmacosx-version-min' => 0, # This is really a 1 argument, but always has '='