Skip to content

Commit

Permalink
Do not skip linker configuration for check builds
Browse files Browse the repository at this point in the history
It was causing unexpected rebuilds.
  • Loading branch information
Kobzol committed Sep 9, 2024
1 parent 085744b commit 9ce492f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bootstrap/src/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2465,8 +2465,9 @@ impl Cargo {
let mut cargo = builder.cargo(compiler, mode, source_type, target, cmd_kind);

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

0 comments on commit 9ce492f

Please sign in to comment.