Skip to content

Commit 4da60fd

Browse files
committed
ensure std for cross-targets
Previously, doing `x test compiler/*` would fail the build due to missing std. This change ensures that it is prepared. Signed-off-by: onur-ozkan <[email protected]>
1 parent 735f758 commit 4da60fd

File tree

1 file changed

+4
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2567,6 +2567,10 @@ impl Step for Crate {
25672567
builder.ensure(compile::Std::force_recompile(compiler, target));
25682568
builder.ensure(RemoteCopyLibs { compiler, target });
25692569

2570+
if builder.config.build != target {
2571+
builder.ensure(compile::Std::force_recompile(compiler, compiler.host));
2572+
}
2573+
25702574
// If we're not doing a full bootstrap but we're testing a stage2
25712575
// version of libstd, then what we're actually testing is the libstd
25722576
// produced in stage1. Reflect that here by updating the compiler that

0 commit comments

Comments
 (0)