Skip to content

Commit

Permalink
Correct a few run.host invocations where run.target is intended.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jul 27, 2017
1 parent 3c43163 commit 9ee877b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl Step for Linkcheck {
}

fn make_run(run: RunConfig) {
run.builder.ensure(Linkcheck { host: run.host });
run.builder.ensure(Linkcheck { host: run.target });
}
}

Expand All @@ -140,7 +140,7 @@ impl Step for Cargotest {
fn make_run(run: RunConfig) {
run.builder.ensure(Cargotest {
stage: run.builder.top_stage,
host: run.host,
host: run.target,
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/bootstrap/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl Step for TheBook {

fn make_run(run: RunConfig) {
run.builder.ensure(TheBook {
compiler: run.builder.compiler(run.builder.top_stage, run.host),
compiler: run.builder.compiler(run.builder.top_stage, run.builder.build.build),
target: run.target,
name: "book",
});
Expand Down Expand Up @@ -296,7 +296,7 @@ impl Step for Standalone {

fn make_run(run: RunConfig) {
run.builder.ensure(Standalone {
compiler: run.builder.compiler(run.builder.top_stage, run.host),
compiler: run.builder.compiler(run.builder.top_stage, run.builder.build.build),
target: run.target,
});
}
Expand Down
6 changes: 3 additions & 3 deletions src/bootstrap/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,17 +247,17 @@ impl Step for Rustdoc {
fn run(self, builder: &Builder) -> PathBuf {
let target_compiler = self.target_compiler;
let build_compiler = if target_compiler.stage == 0 {
target_compiler
builder.compiler(0, builder.build.build)
} else {
// Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise
// we'd have stageN/bin/rustc and stageN/bin/rustdoc be effectively different stage
// compilers, which isn't what we want.
builder.compiler(target_compiler.stage - 1, target_compiler.host)
builder.compiler(target_compiler.stage - 1, builder.build.build)
};

let tool_rustdoc = builder.ensure(ToolBuild {
compiler: build_compiler,
target: build_compiler.host,
target: target_compiler.host,
tool: "rustdoc",
mode: Mode::Librustc,
});
Expand Down

0 comments on commit 9ee877b

Please sign in to comment.