Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 12a3873

Browse files
committedNov 5, 2023
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

+1-1
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)
Please sign in to comment.