diff --git a/gfx/qcms/build.rs b/gfx/qcms/build.rs index a73a492a5229..72b0a22ffe7f 100644 --- a/gfx/qcms/build.rs +++ b/gfx/qcms/build.rs @@ -14,4 +14,7 @@ fn main() { if version().unwrap() >= Version::parse("1.60.0-alpha").unwrap() { println!("cargo:rustc-cfg=std_arch"); } + if version().unwrap() < Version::parse("1.61.0-alpha").unwrap() { + println!("cargo:rustc-cfg=aarch64_target_feature"); + } } diff --git a/gfx/qcms/src/lib.rs b/gfx/qcms/src/lib.rs index 7dde58e7d983..09f29ba0cbf2 100644 --- a/gfx/qcms/src/lib.rs +++ b/gfx/qcms/src/lib.rs @@ -10,7 +10,11 @@ #![cfg_attr(feature = "neon", feature(stdsimd))] #![cfg_attr( feature = "neon", - feature(aarch64_target_feature, arm_target_feature, raw_ref_op) + feature(arm_target_feature, raw_ref_op) +)] +#![cfg_attr( + all(feature = "neon", aarch64_target_feature), + feature(aarch64_target_feature) )] /// These values match the Rendering Intent values from the ICC spec