Skip to content

Commit

Permalink
Update lit config for ld.lld command to match "ld\.lld" instead of tr…
Browse files Browse the repository at this point in the history
…ying to match respective regex. (It was able to work with ld-lld and ld1lld as well)

Differential Revision: https://reviews.llvm.org/D59962

llvm-svn: 357218
  • Loading branch information
rdhindsa14 committed Mar 28, 2019
1 parent 45682fd commit da063e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/utils/lit/lit/llvm/config.py
Expand Up @@ -484,11 +484,11 @@ def use_lld(self, additional_tool_dirs=[], required=True):
was_found = ld_lld and lld_link and ld64_lld and wasm_ld
tool_substitutions = []
if ld_lld:
tool_substitutions.append(ToolSubst('ld.lld', command=ld_lld))
tool_substitutions.append(ToolSubst('ld\.lld', command=ld_lld))
if lld_link:
tool_substitutions.append(ToolSubst('lld-link', command=lld_link))
if ld64_lld:
tool_substitutions.append(ToolSubst('ld64.lld', command=ld64_lld))
tool_substitutions.append(ToolSubst('ld64\.lld', command=ld64_lld))
if wasm_ld:
tool_substitutions.append(ToolSubst('wasm-ld', command=wasm_ld))
self.add_tool_substitutions(tool_substitutions)
Expand Down

0 comments on commit da063e6

Please sign in to comment.