Skip to content

Commit 862c839

Browse files
committed
extend no-std-ness check to all *-none-* targets
1 parent d069354 commit 862c839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/sanity.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub fn check(build: &mut Build) {
169169
panic!("the iOS target is only supported on macOS");
170170
}
171171

172-
if target.starts_with("thumbv") {
172+
if target.contains("-none-") {
173173
if build.no_std(*target).is_none() {
174174
let target = build.config.target_config.entry(target.clone())
175175
.or_insert(Default::default());
@@ -178,7 +178,7 @@ pub fn check(build: &mut Build) {
178178
}
179179

180180
if build.no_std(*target) == Some(false) {
181-
panic!("All the THUMB targets are no-std targets")
181+
panic!("All the *-none-* targets are no-std targets")
182182
}
183183
}
184184

0 commit comments

Comments
 (0)