Skip to content

Commit 78add9d

Browse files
author
Jonas Schievink
committed
Allow building nrf51-hal on x86
So we don't break docs.rs The important thing is that we shouldn't allow thumbv7 and 8
1 parent 19e0aff commit 78add9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nrf51-hal/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::path::PathBuf;
55

66
fn main() {
77
let target = env::var("TARGET").unwrap();
8-
if !target.starts_with("thumbv6") {
8+
if target.starts_with("thumbv7") || target.starts_with("thumbv8") {
99
panic!(
1010
"nrf51-hal only supports thumbv6 targets (attempting to build for `{}`)",
1111
target

0 commit comments

Comments
 (0)