Skip to content

Commit 3bab154

Browse files
committed
Skip target sanity check for local rebuilds
1 parent 3b8cda5 commit 3bab154

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/sanity.rs

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ pub fn check(build: &mut Build) {
9696
path.components().any(|component| skipped_paths.contains(&component.as_os_str()))
9797
});
9898

99+
// Skip target sanity checks when doing a local rebuild as in that case stage0
100+
// likely knows about our new targets.
101+
skip_target_sanity |= build.config.local_rebuild;
102+
99103
let path = env::var_os("PATH").unwrap_or_default();
100104
// On Windows, quotes are invalid characters for filename paths, and if
101105
// one is present as part of the PATH then that can lead to the system

0 commit comments

Comments
 (0)