Skip to content

Commit 041b59e

Browse files
committed
skip target sanity check when it's a local-rebuild
Running the stage0 target sanity check on the newly built compiler can result in errors and incorrect assumptions. Signed-off-by: onur-ozkan <[email protected]>
1 parent f827364 commit 041b59e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/src/core/sanity.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ than building it.
233233
}
234234

235235
// Ignore fake targets that are only used for unit tests in bootstrap.
236-
if cfg!(not(feature = "bootstrap-self-test")) && !skip_target_sanity {
236+
if cfg!(not(feature = "bootstrap-self-test")) && !skip_target_sanity && !build.local_rebuild
237+
{
237238
let mut has_target = false;
238239
let target_str = target.to_string();
239240

0 commit comments

Comments
 (0)