mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-26 05:29:38 +01:00
Make have_basepri an expected cfg
Since Rust 1.80 there is automatic compile-time checks for unexpected cfgs. Ensure that `have_basepri` cfg is known by the compiler emitting it in the build.rs.
This commit is contained in:
parent
1c5db277e4
commit
035ecb565c
2 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,8 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
|
|||
|
||||
### Fixed
|
||||
|
||||
- CFG: Make `have_basepri` an expected cfg
|
||||
|
||||
### Changed
|
||||
|
||||
## [v1.1.4] - 2023-02-26
|
||||
|
|
3
build.rs
3
build.rs
|
@ -7,6 +7,9 @@ fn main() {
|
|||
println!("cargo:rustc-cfg=rustc_is_nightly");
|
||||
}
|
||||
|
||||
// Make `have_basepri` an expected cfg.
|
||||
println!("cargo::rustc-check-cfg=cfg(have_basepri)");
|
||||
|
||||
// These targets all have know support for the BASEPRI register.
|
||||
if target.starts_with("thumbv7m")
|
||||
| target.starts_with("thumbv7em")
|
||||
|
|
Loading…
Reference in a new issue