Skip to content

Commit 9ce492f

Browse files
committed
Do not skip linker configuration for check builds
It was causing unexpected rebuilds.
1 parent 085744b commit 9ce492f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bootstrap/src/core/builder.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2465,8 +2465,9 @@ impl Cargo {
24652465
let mut cargo = builder.cargo(compiler, mode, source_type, target, cmd_kind);
24662466

24672467
match cmd_kind {
2468-
// No need to configure the target linker for these command types.
2469-
Kind::Clean | Kind::Check | Kind::Suggest | Kind::Format | Kind::Setup => {}
2468+
// No need to configure the target linker for these command types,
2469+
// as they don't invoke rustc at all.
2470+
Kind::Clean | Kind::Suggest | Kind::Format | Kind::Setup => {}
24702471
_ => {
24712472
cargo.configure_linker(builder);
24722473
}

0 commit comments

Comments
 (0)