[PATCH] D118738: [BOLT] Add ld.lld substitution
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 5 10:33:13 PST 2022
Amir updated this revision to Diff 406196.
Amir added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118738/new/
https://reviews.llvm.org/D118738
Files:
bolt/test/lit.cfg.py
Index: bolt/test/lit.cfg.py
===================================================================
--- bolt/test/lit.cfg.py
+++ bolt/test/lit.cfg.py
@@ -56,9 +56,12 @@
llvm_config.use_default_substitutions()
llvm_config.config.environment['CLANG'] = config.bolt_clang
-llvm_config.config.environment['LLD'] = config.bolt_lld
llvm_config.use_clang()
-llvm_config.use_llvm_tool('lld', required=True, search_env='LLD')
+
+llvm_config.config.environment['LD_LLD'] = config.bolt_lld
+ld_lld = llvm_config.use_llvm_tool('ld.lld', required=True, search_env='LD_LLD')
+llvm_config.config.available_features.add('ld.lld')
+llvm_config.add_tool_substitutions([ToolSubst(r'ld\.lld', command=ld_lld)])
config.substitutions.append(('%cflags', '-no-pie -gdwarf-4'))
config.substitutions.append(('%cxxflags', '-no-pie -gdwarf-4'))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118738.406196.patch
Type: text/x-patch
Size: 822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220205/fe7b7f87/attachment-0001.bin>
More information about the llvm-commits
mailing list