aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-01-05 07:31:54 +0000
committerTed Kremenek <kremenek@apple.com>2013-01-05 07:31:54 +0000
commit1b15e856e1c31b56fea0b86c99f1ea8313ccd31d (patch)
tree550761fc659bf5978c552b889b64e24f781de7c4
parent436653be0ca4eb696b31315a83a44390cc8bc0b3 (diff)
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 <rdar://problem/12961769>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171607 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xtools/scan-build/set-xcode-analyzer2
1 files changed, 2 insertions, 0 deletions
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