Pass -m32 and -m64 to the static analyzer when using scan-build. Now we can
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
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer
index 8c64d3f..e3db5ea 100755
--- a/tools/scan-build/ccc-analyzer
+++ b/tools/scan-build/ccc-analyzer
@@ -339,6 +339,8 @@
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 '='