From 1b15e856e1c31b56fea0b86c99f1ea8313ccd31d Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sat, 5 Jan 2013 07:31:54 +0000 Subject: [PATCH] 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 --- tools/scan-build/set-xcode-analyzer | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.50.1