improve target selection conditions

This commit is contained in:
Rémy Rakic 2023-06-03 19:50:45 +00:00
parent 17d321cd11
commit 4117b5e65b

View File

@ -845,7 +845,8 @@ impl Step for Lld {
// component installed, one can successfully invoke `rust-lld` directly without rustup's
// `LD_LIBRARY_PATH` overrides)
//
if builder.config.rust_rpath
if builder.config.rpath_enabled(target)
&& util::use_host_linker(target)
&& builder.config.llvm_link_shared()
&& target.contains("linux")
{