Skip to content

Commit 4117b5e

Browse files
committed
improve target selection conditions
1 parent 17d321c commit 4117b5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/llvm.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,8 @@ impl Step for Lld {
845845
// component installed, one can successfully invoke `rust-lld` directly without rustup's
846846
// `LD_LIBRARY_PATH` overrides)
847847
//
848-
if builder.config.rust_rpath
848+
if builder.config.rpath_enabled(target)
849+
&& util::use_host_linker(target)
849850
&& builder.config.llvm_link_shared()
850851
&& target.contains("linux")
851852
{

0 commit comments

Comments
 (0)