Skip to content

Commit b682928

Browse files
[rust] ahash patch due to toolchain update
This crate has a build error relating to the `stdsimd` feature use. This has been fixed in newer versions of the crate, however on the one checked out in the repo, this is still an issue. This change fixes this issue by importing the fix[1] provided by the authors. [1] tkaitchuck/aHash#201
1 parent aa9abc2 commit b682928

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • third_party/rust/ahash/v0_7/crate

third_party/rust/ahash/v0_7/crate/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ fn main() {
77
if let Some(channel) = version_check::Channel::read() {
88
if channel.supports_features() {
99
println!("cargo:rustc-cfg=feature=\"specialize\"");
10-
println!("cargo:rustc-cfg=feature=\"stdsimd\"");
10+
if version_check::Version::read().map_or(false, |v| v.at_most("1.77.9")) {
11+
println!("cargo:rustc-cfg=feature=\"stdsimd\"");
12+
}
1113
}
1214
}
1315
let os = env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS was not set");

0 commit comments

Comments
 (0)