diff --git a/build.rs b/build.rs index 27bf79d..17c8b1f 100644 --- a/build.rs +++ b/build.rs @@ -187,14 +187,13 @@ fn main() { let min_version = Version::new(1, 80, 0); let current_version = { - // rmeove prerelease tag for now, if it exists + // remove prerelease tag for now, if it exists. let vers = version().unwrap(); Version::new(vers.major, vers.minor, vers.patch) }; - // only stable in nightly versions for 1.80 and above - println!("cargo::rustc-check-cfg=cfg(armsimd)"); if current_version >= min_version { + println!("cargo::rustc-check-cfg=cfg(armsimd)"); println!("cargo::rustc-cfg=armsimd"); } }