From 73013745a3a851807126115a640d150d578c219b Mon Sep 17 00:00:00 2001 From: Claudio DeSouza Date: Wed, 21 Feb 2024 14:37:16 +0000 Subject: [PATCH] [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] https://github.com/tkaitchuck/aHash/pull/201 --- third_party/rust/ahash/v0_7/crate/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third_party/rust/ahash/v0_7/crate/build.rs b/third_party/rust/ahash/v0_7/crate/build.rs index 8be4964e520e0..6aba02526bc23 100644 --- a/third_party/rust/ahash/v0_7/crate/build.rs +++ b/third_party/rust/ahash/v0_7/crate/build.rs @@ -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");