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 <work@onurozkan.dev>
This commit is contained in:
parent
735f7589e3
commit
5aece7fad0
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue