Skip to content

Commit 73597fb

Browse files
bjorn3XAMPPRocky
authored andcommitted
Fix install location for codegen backends
1 parent 02087c3 commit 73597fb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/bootstrap/dist.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,14 +1240,13 @@ impl Step for CodegenBackend {
12401240
.strip_prefix(builder.sysroot_libdir_relative(compiler))
12411241
.unwrap();
12421242
// Don't use custom libdir here because ^lib/ will be resolved again with installer
1243-
let backends_dst = tarball.image_dir().join("lib").join(&backends_rel);
1243+
let backends_dst = PathBuf::from("lib").join(&backends_rel);
12441244

1245-
t!(fs::create_dir_all(&backends_dst));
12461245
let backend_name = format!("rustc_codegen_{}", backend);
12471246
for backend in fs::read_dir(&backends_src).unwrap() {
12481247
let file_name = backend.unwrap().file_name();
12491248
if file_name.to_str().unwrap().contains(&backend_name) {
1250-
tarball.add_file(backends_src.join(file_name), backends_rel, 0o644);
1249+
tarball.add_file(backends_src.join(file_name), &backends_dst, 0o644);
12511250
}
12521251
}
12531252

@@ -1401,8 +1400,11 @@ impl Step for Extended {
14011400
let miri_installer = builder.ensure(Miri { compiler, target });
14021401
let mingw_installer = builder.ensure(Mingw { host: target });
14031402
let analysis_installer = builder.ensure(Analysis { compiler, target });
1404-
let rustc_codegen_cranelift_installer =
1405-
builder.ensure(CodegenBackend { compiler, target, backend: INTERNER.intern_str("cranelift") });
1403+
let rustc_codegen_cranelift_installer = builder.ensure(CodegenBackend {
1404+
compiler,
1405+
target,
1406+
backend: INTERNER.intern_str("cranelift"),
1407+
});
14061408

14071409
let docs_installer = builder.ensure(Docs { host: target });
14081410
let std_installer = builder.ensure(Std { compiler, target });

0 commit comments

Comments
 (0)