We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d09e8b7 commit 963572dCopy full SHA for 963572d
security/manager/ssl/crypto_hash/Cargo.toml
@@ -11,5 +11,13 @@ md-5 = "0.10.2"
11
nserror = { path = "../../../../xpcom/rust/nserror" }
12
nsstring = { path = "../../../../xpcom/rust/nsstring" }
13
sha1 = "0.10.2"
14
-sha2 = "0.10.2"
15
xpcom = { path = "../../../../xpcom/rust/xpcom" }
+
16
+# bug 1838108: on Windows 7 pre-SP1, AVX instructions are disabled, even though
17
+# they might be supported by the processor. cpufeatures doesn't take this into
18
+# account, so the assembly implementation causes illegal instruction crashes.
19
+# As a workaround for now, use the non-assembly implementation.
20
+[target.'cfg(windows)'.dependencies]
21
+sha2 = { version = "0.10.2", features = ["force-soft"]}
22
+[target.'cfg(not(windows))'.dependencies]
23
+sha2 = "0.10.2"
0 commit comments