Skip to content

Commit

Permalink
Disable nightly stdsimd on too-new rustc (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Feb 10, 2024
1 parent 6d1e836 commit 11dddbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ fn main() {
if let Some(channel) = version_check::Channel::read() {
if channel.supports_features() {
println!("cargo:rustc-cfg=feature=\"specialize\"");
println!("cargo:rustc-cfg=feature=\"stdsimd\"");
if version_check::Version::read().map_or(false, |v| v.at_most("1.77.9")) {
println!("cargo:rustc-cfg=feature=\"stdsimd\"");
}
}
}
let os = env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS was not set");
Expand Down

0 comments on commit 11dddbd

Please sign in to comment.