From 4ba54ab99c1410b76d41a0c8038b8443517a6ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Miku=C5=82a?= Date: Mon, 24 Jul 2023 21:09:13 +0200 Subject: [PATCH] Fix build on `i686-*-pc-windows-gnu*` by disabling sha1-asm --- gix-features/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gix-features/Cargo.toml b/gix-features/Cargo.toml index e1cd1cdea2f..b03d44e00e0 100644 --- a/gix-features/Cargo.toml +++ b/gix-features/Cargo.toml @@ -150,9 +150,9 @@ libc = { version = "0.2.119" } bstr = { version = "1.3.0", default-features = false } -# Assembly doesn't yet compile on MSVC on windows, but does on GNU, see https://github.com/RustCrypto/asm-hashes/issues/17 +# Assembly doesn't yet compile on MSVC and x86 GNU on windows, but does on x86_64 GNU, see https://github.com/RustCrypto/asm-hashes/issues/17 # At this time, only aarch64, x86 and x86_64 are supported. -[target.'cfg(all(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"), not(target_env = "msvc")))'.dependencies] +[target.'cfg(all(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"), not(any(target_env = "msvc", all(target_arch = "x86", target_env = "gnu")))))'.dependencies] sha1 = { version = "0.10.0", optional = true, features = ["asm"] } [package.metadata.docs.rs]