Skip to content

Commit b9cdd1d

Browse files
committed
Stop copying codegen backends into the rustc component
The LLVM backend is linked into rustc itself and other backends will likely be shipped in separate components in the future.
1 parent 2136a0f commit b9cdd1d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/bootstrap/dist.rs

-13
Original file line numberDiff line numberDiff line change
@@ -445,19 +445,6 @@ impl Step for Rustc {
445445
}
446446
}
447447

448-
// Copy over the codegen backends
449-
let backends_src = builder.sysroot_codegen_backends(compiler);
450-
let backends_rel = backends_src
451-
.strip_prefix(&src)
452-
.unwrap()
453-
.strip_prefix(builder.sysroot_libdir_relative(compiler))
454-
.unwrap();
455-
// Don't use custom libdir here because ^lib/ will be resolved again with installer
456-
let backends_dst = image.join("lib").join(&backends_rel);
457-
458-
t!(fs::create_dir_all(&backends_dst));
459-
builder.cp_r(&backends_src, &backends_dst);
460-
461448
// Copy libLLVM.so to the lib dir as well, if needed. While not
462449
// technically needed by rustc itself it's needed by lots of other
463450
// components like the llvm tools and LLD. LLD is included below and

0 commit comments

Comments
 (0)