Skip to content

Commit

Permalink
Remove cargo::rustc-check-cfg from build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed May 29, 2024
1 parent 962a6ba commit b84c6cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,11 @@ 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-cfg=armsimd");
}
Expand Down

0 comments on commit b84c6cd

Please sign in to comment.