From ab8b5233d2952942d9f6551b47f4479fc1de15f0 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sun, 12 Dec 2021 14:09:15 +0100 Subject: [PATCH] fix: exclude asm for msvc (#679) --- ethers-solc/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethers-solc/Cargo.toml b/ethers-solc/Cargo.toml index faf7d910..27d63109 100644 --- a/ethers-solc/Cargo.toml +++ b/ethers-solc/Cargo.toml @@ -33,10 +33,10 @@ tracing = "0.1.29" num_cpus = "1.13.0" tiny-keccak = { version = "2.0.2", default-features = false } -[target.'cfg(not(any(target_arch = "x86", target_arch = "x86_64")))'.dependencies] +[target.'cfg(any(not(any(target_arch = "x86", target_arch = "x86_64")), target_env = "msvc"))'.dependencies] sha2 = { version = "0.9.8", default-features = false } -[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies] +[target.'cfg(all(any(target_arch = "x86", target_arch = "x86_64"), not(target_env = "msvc")))'.dependencies] sha2 = { version = "0.9.8", default-features = false, features = ["asm"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies]