diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-01-05 07:31:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-01-05 07:31:54 +0000 |
commit | 6a4c73db233d283ab9f80ca5fe5da07c44b6ac79 (patch) | |
tree | d6e55cd813b32b5a914380f4f26f865686975183 | |
parent | 153c8e0cc2a96368ac4f16e6ded1e0cf33110cb7 (diff) | |
download | bcm5719-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-x | clang/tools/scan-build/set-xcode-analyzer | 2 |
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 |