Skip to content

Commit 0626c7a

Browse files
Allow to use cg_gcc path in bootstrap clippy command
1 parent 1ed0cc3 commit 0626c7a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bootstrap/src/core/build_steps/clippy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl Step for CodegenGcc {
343343
type Output = ();
344344

345345
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
346-
run.alias("rustc_codegen_gcc")
346+
run.alias("rustc_codegen_gcc").path("compiler/rustc_codegen_gcc")
347347
}
348348

349349
fn make_run(run: RunConfig<'_>) {

src/bootstrap/src/core/builder/tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2763,6 +2763,8 @@ mod snapshot {
27632763
.render_steps(), @r"
27642764
[build] llvm <host>
27652765
[clippy] rustc 0 <host> -> rustc 1 <host>
2766+
[check] rustc 0 <host> -> rustc 1 <host>
2767+
[clippy] rustc 0 <host> -> rustc_codegen_gcc 1 <host>
27662768
");
27672769
}
27682770

@@ -2780,6 +2782,8 @@ mod snapshot {
27802782
[build] rustc 0 <host> -> clippy-driver 1 <host>
27812783
[build] rustc 0 <host> -> cargo-clippy 1 <host>
27822784
[clippy] rustc 1 <host> -> rustc 2 <host>
2785+
[check] rustc 1 <host> -> rustc 2 <host>
2786+
[clippy] rustc 1 <host> -> rustc_codegen_gcc 2 <host>
27832787
");
27842788
}
27852789

0 commit comments

Comments
 (0)