Skip to content

Commit 12a3873

Browse files
committed
bootstrap: use new check-cfg syntax when building stage 2 and above
This is required by the libc crate since it uses the new syntax as soon as it detects rustc version 1.75 or above, which is the case when building with stage 1 and above.
1 parent fbef8cc commit 12a3873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ impl<'a> Builder<'a> {
14041404
}
14051405

14061406
// #[cfg(bootstrap)]
1407-
let use_new_check_cfg_syntax = self.local_rebuild;
1407+
let use_new_check_cfg_syntax = stage >= 1;
14081408

14091409
// Enable compile-time checking of `cfg` names, values and Cargo `features`.
14101410
//

0 commit comments

Comments
 (0)