extend no-std-ness check to all *-none-* targets

This commit is contained in:
Jorge Aparicio 2018-04-03 08:29:09 +02:00
parent d0693548cd
commit 862c839fb9

View File

@ -169,7 +169,7 @@ pub fn check(build: &mut Build) {
panic!("the iOS target is only supported on macOS");
}
if target.starts_with("thumbv") {
if target.contains("-none-") {
if build.no_std(*target).is_none() {
let target = build.config.target_config.entry(target.clone())
.or_insert(Default::default());
@ -178,7 +178,7 @@ pub fn check(build: &mut Build) {
}
if build.no_std(*target) == Some(false) {
panic!("All the THUMB targets are no-std targets")
panic!("All the *-none-* targets are no-std targets")
}
}