summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-02-12 14:04:53 +0100
committerErin Power <erin.power@embark-studios.com>2021-04-30 15:37:42 +0200
commitfb85c7702e89cec6e82c9b7310b294bad4eca65e (patch)
tree1b3ab0fad954f1469c96b3d5b056289618bbf518
parent079f6011d4b9160397ebe3f7f7f08aeded44900e (diff)
downloadrust-fb85c7702e89cec6e82c9b7310b294bad4eca65e.tar.gz
Avoid building more stages of rustc than necessary
-rw-r--r--src/bootstrap/compile.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs
index 66a88e85fea..32c9619dff4 100644
--- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
@@ -741,13 +741,12 @@ pub struct CodegenBackend {
impl Step for CodegenBackend {
type Output = ();
const ONLY_HOSTS: bool = true;
- // Only the backends specified in the `codegen-backends` entry of `config.toml` are built.
- const DEFAULT: bool = true;
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
run.path("compiler/rustc_codegen_cranelift")
}
+ // Only the backends specified in the `codegen-backends` entry of `config.toml` are built.
fn make_run(run: RunConfig<'_>) {
for &backend in &run.builder.config.rust_codegen_backends {
if backend == "llvm" {