diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index 746cddbabd639..56164b74f3088 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -180,7 +180,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") { target.no_std = true; } target