File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -161,13 +161,13 @@ impl Step for Std {
161
161
// The LLD wrappers and `rust-lld` are self-contained linking components that can be
162
162
// necessary to link the stdlib on some targets. We'll also need to copy these binaries to
163
163
// the `stage0-sysroot` to ensure the linker is found when bootstrapping on such a target.
164
- if compiler. stage == 0 && compiler. host == builder. config . build {
164
+ if compiler. stage == 0 && compiler. host == builder. config . build && builder . config . use_lld {
165
165
// We want to copy the host `bin` folder within the `rustlib` folder in the sysroot.
166
166
let src_sysroot_bin = builder
167
167
. rustc_snapshot_sysroot ( )
168
168
. join ( "lib" )
169
169
. join ( "rustlib" )
170
- . join ( & compiler. host . triple )
170
+ . join ( compiler. host . triple )
171
171
. join ( "bin" ) ;
172
172
let target_sysroot_bin =
173
173
builder. sysroot_libdir ( compiler, target) . parent ( ) . unwrap ( ) . join ( "bin" ) ;
You can’t perform that action at this time.
0 commit comments