Skip to content

Commit

Permalink
ensure std for cross-targets
Browse files Browse the repository at this point in the history
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 <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Mar 13, 2024
1 parent 735f758 commit 5aece7f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2564,8 +2564,12 @@ impl Step for Crate {
let mode = self.mode;

// See [field@compile::Std::force_recompile].
builder.ensure(compile::Std::force_recompile(compiler, target));
builder.ensure(RemoteCopyLibs { compiler, target });
builder.ensure(compile::Std::force_recompile(compiler, compiler.host));

if builder.config.build != target {
builder.ensure(compile::Std::force_recompile(compiler, target));
builder.ensure(RemoteCopyLibs { compiler, target });
}

// If we're not doing a full bootstrap but we're testing a stage2
// version of libstd, then what we're actually testing is the libstd
Expand Down

0 comments on commit 5aece7f

Please sign in to comment.