Don't build std for switch

This commit is contained in:
leo60228 2021-09-15 15:30:00 -04:00
parent 4bc8549cb3
commit bee373c699
No known key found for this signature in database
GPG Key ID: AC6F4BA078E67833

View File

@ -411,7 +411,7 @@ pub struct Target {
impl Target {
pub fn from_triple(triple: &str) -> Self {
let mut target: Self = Default::default();
if triple.contains("-none") || triple.contains("nvptx") {
if triple.contains("-none") || triple.contains("nvptx") || triple.contains("switch") {
target.no_std = true;
}
target