From: Ted Kremenek Date: Sat, 5 Jan 2013 07:31:54 +0000 (+0000) Subject: Fix set-xcode-analyzer to only modify the ExecPath for the analyzer when using -... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b15e856e1c31b56fea0b86c99f1ea8313ccd31d;p=clang Fix set-xcode-analyzer to only modify the ExecPath for the analyzer when using --use-xcode-clang. Turns out that the ExecPath for the ObjC migrator would also get set. Fixes . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171607 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/scan-build/set-xcode-analyzer b/tools/scan-build/set-xcode-analyzer index e76e304467..a32e6762d9 100755 --- a/tools/scan-build/set-xcode-analyzer +++ b/tools/scan-build/set-xcode-analyzer @@ -45,6 +45,8 @@ def ModifySpec(path, isBuiltinAnalyzer, pathToChecker): m = re.search('^(\s*ExecPath\s*=\s*")', line) if m: line = "".join([m.group(0), pathToChecker, '";\n']) + # Do not modify further ExecPath's later in the xcspec. + foundAnalyzer = False t.write(line) t.close() print "(+) processing:", path