diff options
Diffstat (limited to 'clang/utils/analyzer/SATestBuild.py')
-rwxr-xr-x | clang/utils/analyzer/SATestBuild.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py index 1c96cd88381..691ded80a1e 100755 --- a/clang/utils/analyzer/SATestBuild.py +++ b/clang/utils/analyzer/SATestBuild.py @@ -343,18 +343,13 @@ def runAnalyzePreprocessed(Args, Dir, SBOutputDir, Mode): BuildScript)) raise Exception() - CmdPrefix = Clang + " -cc1 " + CmdPrefix = Clang + " --analyze " - # For now, we assume the preprocessed files should be analyzed - # with the OS X SDK. - SDKPath = SATestUtils.getSDKPath("macosx") - if SDKPath is not None: - CmdPrefix += "-isysroot " + SDKPath + " " - - CmdPrefix += "-analyze -analyzer-output=plist -w " - CmdPrefix += "-analyzer-checker=" + Checkers + CmdPrefix += "--analyzer-output plist " + CmdPrefix += " -Xclang -analyzer-checker=" + Checkers CmdPrefix += " -fcxx-exceptions -fblocks " - CmdPrefix += " -analyzer-config %s " % generateAnalyzerConfig(Args) + CmdPrefix += " -Xclang -analyzer-config -Xclang %s "\ + % generateAnalyzerConfig(Args) if (Mode == 2): CmdPrefix += "-std=c++11 " |