Skip to content

Commit 8290766

Browse files
committed
bypass linker configuration and cross target check on x check
Signed-off-by: onur-ozkan <[email protected]>
1 parent 496145b commit 8290766

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/bootstrap/src/core/builder/cargo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl Cargo {
114114
match cmd_kind {
115115
// No need to configure the target linker for these command types,
116116
// as they don't invoke rustc at all.
117-
Kind::Clean | Kind::Suggest | Kind::Format | Kind::Setup => {}
117+
Kind::Clean | Kind::Check | Kind::Suggest | Kind::Format | Kind::Setup => {}
118118
_ => {
119119
cargo.configure_linker(builder);
120120
}

src/bootstrap/src/utils/cc_detect.rs

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ pub fn find(build: &Build) {
9696
let targets: HashSet<_> = match build.config.cmd {
9797
// We don't need to check cross targets for these commands.
9898
crate::Subcommand::Clean { .. }
99+
| crate::Subcommand::Check { .. }
99100
| crate::Subcommand::Suggest { .. }
100101
| crate::Subcommand::Format { .. }
101102
| crate::Subcommand::Setup { .. } => {

0 commit comments

Comments
 (0)