summaryrefslogtreecommitdiffstats
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
commit6a4c73db233d283ab9f80ca5fe5da07c44b6ac79 (patch)
treed6e55cd813b32b5a914380f4f26f865686975183
parent153c8e0cc2a96368ac4f16e6ded1e0cf33110cb7 (diff)
downloadbcm5719-llvm-6a4c73db233d283ab9f80ca5fe5da07c44b6ac79.tar.gz
bcm5719-llvm-6a4c73db233d283ab9f80ca5fe5da07c44b6ac79.zip
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>. llvm-svn: 171607
-rwxr-xr-xclang/tools/scan-build/set-xcode-analyzer2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/scan-build/set-xcode-analyzer b/clang/tools/scan-build/set-xcode-analyzer
index e76e3044676..a32e6762d9e 100755
--- a/clang/tools/scan-build/set-xcode-analyzer
+++ b/clang/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
OpenPOWER on IntegriCloud