Skip to content

Commit

Permalink
[rust] ahash patch due to toolchain update
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cdesouza-chromium committed Feb 27, 2024
1 parent 9519704 commit 7301374
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion third_party/rust/ahash/v0_7/crate/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 7301374

Please sign in to comment.