We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88bc4ca + ccc6a15 commit 845fa85Copy full SHA for 845fa85
nrf-hal-common/build.rs
@@ -0,0 +1,15 @@
1
+use std::{env, process};
2
+
3
+fn main() {
4
+ if env::var_os("CARGO_FEATURE_51").is_none() {
5
+ // Not building for the nRF51. 52+ use too many interrupts for the thumbv6 target, so detect
6
+ // that early.
7
+ if env::var("TARGET").unwrap() == "thumbv6m-none-eabi" {
8
+ eprintln!(
9
+ "this nRF device does not support the `thumbv6m-none-eabi` target; \
10
+ build for `thumbv7em-none-eabi(hf)` instead"
11
+ );
12
+ process::exit(1);
13
+ }
14
15
+}
0 commit comments