Skip to content

Commit dc8ee51

Browse files
committed
Use builder.compiler_for() to find the libstd stamp
1 parent faee5fd commit dc8ee51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/dist.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -680,11 +680,11 @@ impl Step for Std {
680680
let image = tmpdir(builder).join(format!("{}-{}-image", name, target));
681681
let _ = fs::remove_dir_all(&image);
682682

683-
684683
let dst = image.join("lib/rustlib").join(target).join("lib");
685684
t!(fs::create_dir_all(&dst));
686685

687-
let stamp = dbg!(compile::libstd_stamp(builder, compiler, target));
686+
let compiler_to_use = builder.compiler_for(compiler.stage, compiler.host, target);
687+
let stamp = dbg!(compile::libstd_stamp(builder, compiler_to_use, target));
688688
for (path, host) in builder.read_stamp_file(&stamp) {
689689
if !host {
690690
builder.copy(&path, &dst.join(path.file_name().unwrap()));

0 commit comments

Comments
 (0)