From: Rumeet Dhindsa Date: Thu, 28 Mar 2019 22:26:51 +0000 (+0000) Subject: Update lit config for ld.lld command to match "ld\.lld" instead of trying to match... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06a5e33b71ee2a276ddc6e554c77364968d8cea6;p=llvm Update lit config for ld.lld command to match "ld\.lld" instead of trying to match respective regex. (It was able to work with ld-lld and ld1lld as well) Differential Revision: https://reviews.llvm.org/D59962 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357218 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/lit/lit/llvm/config.py b/utils/lit/lit/llvm/config.py index c7846bbe4e9..01cc0ccec17 100644 --- a/utils/lit/lit/llvm/config.py +++ b/utils/lit/lit/llvm/config.py @@ -484,11 +484,11 @@ class LLVMConfig(object): 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)