Skip to content

Commit

Permalink
Unconditionally enable SHA-NI extensions (#11711)
Browse files Browse the repository at this point in the history
We rely on this extension to accelerate computation of SHA2 hashes
quickly. This extension not being present will slow down node beyond
what's reasonable and the node will not be able to keep up with others.
Enabling this extension unconditionally and having the node fail early
on machines where the extension is not available seems like a reasonable
option here.
  • Loading branch information
nagisa authored Jul 4, 2024
1 parent 5dadd93 commit 88af2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
rustflags = ["-Cforce-unwind-tables=y"]

[target.'cfg(target_arch = "x86_64")']
rustflags = ["-Ctarget-feature=+sse4.1,+sse4.2", "-Cforce-unwind-tables=y"]
rustflags = ["-Ctarget-feature=+sse2,+ssse3,+sse4.1,+sse4.2,+sha", "-Cforce-unwind-tables=y"]

0 comments on commit 88af2fa

Please sign in to comment.