Skip to content

Commit 564fc54

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 564fc54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/src/core/sanity.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ 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"))
237+
&& (!skip_target_sanity || !build.local_rebuild)
238+
{
237239
let mut has_target = false;
238240
let target_str = target.to_string();
239241

0 commit comments

Comments
 (0)