Skip to content

Commit

Permalink
Skip target sanity check for local rebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jun 15, 2024
1 parent 3b8cda5 commit 3bab154
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/src/core/sanity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ pub fn check(build: &mut Build) {
path.components().any(|component| skipped_paths.contains(&component.as_os_str()))
});

// Skip target sanity checks when doing a local rebuild as in that case stage0
// likely knows about our new targets.
skip_target_sanity |= build.config.local_rebuild;

let path = env::var_os("PATH").unwrap_or_default();
// On Windows, quotes are invalid characters for filename paths, and if
// one is present as part of the PATH then that can lead to the system
Expand Down

0 comments on commit 3bab154

Please sign in to comment.