Skip to content

Commit 963572d

Browse files
committed
7 SP0/Vista AVX fix
1 parent d09e8b7 commit 963572d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

security/manager/ssl/crypto_hash/Cargo.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,13 @@ md-5 = "0.10.2"
1111
nserror = { path = "../../../../xpcom/rust/nserror" }
1212
nsstring = { path = "../../../../xpcom/rust/nsstring" }
1313
sha1 = "0.10.2"
14-
sha2 = "0.10.2"
1514
xpcom = { path = "../../../../xpcom/rust/xpcom" }
15+
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

Comments
 (0)