Skip to content

Commit

Permalink
7 SP0/Vista AVX fix
Browse files Browse the repository at this point in the history
  • Loading branch information
K4sum1 committed Jan 27, 2024
1 parent d09e8b7 commit 963572d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion security/manager/ssl/crypto_hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@ md-5 = "0.10.2"
nserror = { path = "../../../../xpcom/rust/nserror" }
nsstring = { path = "../../../../xpcom/rust/nsstring" }
sha1 = "0.10.2"
sha2 = "0.10.2"
xpcom = { path = "../../../../xpcom/rust/xpcom" }

# bug 1838108: on Windows 7 pre-SP1, AVX instructions are disabled, even though
# they might be supported by the processor. cpufeatures doesn't take this into
# account, so the assembly implementation causes illegal instruction crashes.
# As a workaround for now, use the non-assembly implementation.
[target.'cfg(windows)'.dependencies]
sha2 = { version = "0.10.2", features = ["force-soft"]}
[target.'cfg(not(windows))'.dependencies]
sha2 = "0.10.2"

0 comments on commit 963572d

Please sign in to comment.