gecko-dev/gfx/qcms/build.rs
2021-08-05 05:10:37 +00:00

13 lines
478 B
Rust

fn main() {
if cfg!(feature = "neon") && std::env::var_os("RUSTC_BOOTSTRAP").is_none() {
// With Rust 1.50 and newer RUSTC_BOOTSTAP should
// be set externally so we only set it if it's
// not already set.
println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1");
}
let target = std::env::var("TARGET").expect("TARGET environment variable not defined");
if target.contains("neon") {
println!("cargo:rustc-cfg=libcore_neon");
}
}