Remove duplicate aliases for codegen_{cranelift,gcc}
Bootstrap already allows selecting these in `PathSet::has`, which allows any string that matches the end of a full path. I found these by adding `assert!(path.exists())` in `StepDescription::paths`. I think ideally we wouldn't have any aliases that aren't paths, but I've held off on enforcing that here since it may be controversial, I'll open a separate PR.
This commit is contained in:
parent
027a232755
commit
986c1687f8
@ -243,12 +243,7 @@ impl Step for CodegenBackend {
|
|||||||
const DEFAULT: bool = true;
|
const DEFAULT: bool = true;
|
||||||
|
|
||||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||||
run.paths(&[
|
run.paths(&["compiler/rustc_codegen_cranelift", "compiler/rustc_codegen_gcc"])
|
||||||
"compiler/rustc_codegen_cranelift",
|
|
||||||
"rustc_codegen_cranelift",
|
|
||||||
"compiler/rustc_codegen_gcc",
|
|
||||||
"rustc_codegen_gcc",
|
|
||||||
])
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
|
Loading…
Reference in New Issue
Block a user