forked from OSchip/llvm-project
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:
parent
153c8e0cc2
commit
6a4c73db23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue