build_helper/targets.rs
1// FIXME(#142296): this hack is because there is no reliable way (yet) to determine whether a given
2// target supports std. In the long-term, we should try to implement a way to *reliably* determine
3// target (std) metadata.
4//
5// NOTE: this is pulled out to `build_helpers` to share this hack between `bootstrap` and
6// `compiletest`.
7pub fn target_supports_std(target_tuple: &str) -> bool {
8 !(target_tuple.contains("-none")
9 || target_tuple.contains("nvptx")
10 || target_tuple.contains("switch"))
11}