avoid compiler_for
for dist tools and force the current compiler
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
bb2cc59a21
commit
50f84129e6
2 changed files with 11 additions and 47 deletions
|
@ -421,11 +421,7 @@ impl Step for Rustc {
|
||||||
|
|
||||||
if let Some(ra_proc_macro_srv) = builder.ensure_if_default(
|
if let Some(ra_proc_macro_srv) = builder.ensure_if_default(
|
||||||
tool::RustAnalyzerProcMacroSrv {
|
tool::RustAnalyzerProcMacroSrv {
|
||||||
compiler: builder.compiler_for(
|
compiler: builder.compiler(compiler.stage, builder.config.build),
|
||||||
compiler.stage,
|
|
||||||
builder.config.build,
|
|
||||||
compiler.host,
|
|
||||||
),
|
|
||||||
target: compiler.host,
|
target: compiler.host,
|
||||||
},
|
},
|
||||||
builder.kind,
|
builder.kind,
|
||||||
|
@ -775,11 +771,7 @@ impl Step for Analysis {
|
||||||
// Find the actual compiler (handling the full bootstrap option) which
|
// Find the actual compiler (handling the full bootstrap option) which
|
||||||
// produced the save-analysis data because that data isn't copied
|
// produced the save-analysis data because that data isn't copied
|
||||||
// through the sysroot uplifting.
|
// through the sysroot uplifting.
|
||||||
compiler: run.builder.compiler_for(
|
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
|
||||||
run.builder.top_stage,
|
|
||||||
run.builder.config.build,
|
|
||||||
run.target,
|
|
||||||
),
|
|
||||||
target: run.target,
|
target: run.target,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1124,11 +1116,7 @@ impl Step for Cargo {
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
run.builder.ensure(Cargo {
|
run.builder.ensure(Cargo {
|
||||||
compiler: run.builder.compiler_for(
|
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
|
||||||
run.builder.top_stage,
|
|
||||||
run.builder.config.build,
|
|
||||||
run.target,
|
|
||||||
),
|
|
||||||
target: run.target,
|
target: run.target,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1173,11 +1161,7 @@ impl Step for Rls {
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
run.builder.ensure(Rls {
|
run.builder.ensure(Rls {
|
||||||
compiler: run.builder.compiler_for(
|
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
|
||||||
run.builder.top_stage,
|
|
||||||
run.builder.config.build,
|
|
||||||
run.target,
|
|
||||||
),
|
|
||||||
target: run.target,
|
target: run.target,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1215,11 +1199,7 @@ impl Step for RustAnalyzer {
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
run.builder.ensure(RustAnalyzer {
|
run.builder.ensure(RustAnalyzer {
|
||||||
compiler: run.builder.compiler_for(
|
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
|
||||||
run.builder.top_stage,
|
|
||||||
run.builder.config.build,
|
|
||||||
run.target,
|
|
||||||
),
|
|
||||||
target: run.target,
|
target: run.target,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1257,11 +1237,7 @@ impl Step for Clippy {
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
run.builder.ensure(Clippy {
|
run.builder.ensure(Clippy {
|
||||||
compiler: run.builder.compiler_for(
|
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
|
||||||
run.builder.top_stage,
|
|
||||||
run.builder.config.build,
|
|
||||||
run.target,
|
|
||||||
),
|
|
||||||
target: run.target,
|
target: run.target,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1304,11 +1280,7 @@ impl Step for Miri {
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
run.builder.ensure(Miri {
|
run.builder.ensure(Miri {
|
||||||
compiler: run.builder.compiler_for(
|
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
|
||||||
run.builder.top_stage,
|
|
||||||
run.builder.config.build,
|
|
||||||
run.target,
|
|
||||||
),
|
|
||||||
target: run.target,
|
target: run.target,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1442,11 +1414,7 @@ impl Step for Rustfmt {
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
run.builder.ensure(Rustfmt {
|
run.builder.ensure(Rustfmt {
|
||||||
compiler: run.builder.compiler_for(
|
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
|
||||||
run.builder.top_stage,
|
|
||||||
run.builder.config.build,
|
|
||||||
run.target,
|
|
||||||
),
|
|
||||||
target: run.target,
|
target: run.target,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1496,7 +1464,7 @@ impl Step for Extended {
|
||||||
fn run(self, builder: &Builder<'_>) {
|
fn run(self, builder: &Builder<'_>) {
|
||||||
let target = self.target;
|
let target = self.target;
|
||||||
let stage = self.stage;
|
let stage = self.stage;
|
||||||
let compiler = builder.compiler_for(self.stage, self.host, self.target);
|
let compiler = builder.compiler(self.stage, self.host);
|
||||||
|
|
||||||
builder.info(&format!("Dist extended stage{} ({})", compiler.stage, target));
|
builder.info(&format!("Dist extended stage{} ({})", compiler.stage, target));
|
||||||
|
|
||||||
|
@ -2260,11 +2228,7 @@ impl Step for LlvmBitcodeLinker {
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
run.builder.ensure(LlvmBitcodeLinker {
|
run.builder.ensure(LlvmBitcodeLinker {
|
||||||
compiler: run.builder.compiler_for(
|
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
|
||||||
run.builder.top_stage,
|
|
||||||
run.builder.config.build,
|
|
||||||
run.target,
|
|
||||||
),
|
|
||||||
target: run.target,
|
target: run.target,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -525,7 +525,7 @@ mod dist {
|
||||||
first(cache.all::<compile::Rustc>()),
|
first(cache.all::<compile::Rustc>()),
|
||||||
&[
|
&[
|
||||||
rustc!(TEST_TRIPLE_1 => TEST_TRIPLE_1, stage = 0),
|
rustc!(TEST_TRIPLE_1 => TEST_TRIPLE_1, stage = 0),
|
||||||
rustc!(TEST_TRIPLE_1 => TEST_TRIPLE_2, stage = 0),
|
rustc!(TEST_TRIPLE_1 => TEST_TRIPLE_1, stage = 1),
|
||||||
rustc!(TEST_TRIPLE_1 => TEST_TRIPLE_2, stage = 1),
|
rustc!(TEST_TRIPLE_1 => TEST_TRIPLE_2, stage = 1),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue