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
This commit is contained in:
Ted Kremenek 2013-01-05 07:31:54 +00:00
parent 153c8e0cc2
commit 6a4c73db23
1 changed files with 2 additions and 0 deletions

View File

@ -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