Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Build parity-ethereum with SSE2, SSSE3 and AES enabled
Browse files Browse the repository at this point in the history
This enables the `aesni` crate for 50x faster AES crypto.
  • Loading branch information
dvdplm committed Jun 17, 2019
1 parent b2e51bb commit 9999b71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[target.x86_64-pc-windows-msvc]
# Link the C runtime statically ; https://github.com/paritytech/parity-ethereum/issues/6643
rustflags = ["-Ctarget-feature=+crt-static"]

[target.'cfg(target_arch = "x86_64")']

This comment has been minimized.

Copy link
@dvdplm

dvdplm Jun 17, 2019

Author Collaborator

Being conservative here. It looks like x86 would also work.

rustflags = ["-Ctarget_feature=sse2", "-Ctarget_feature=aes", "-Ctarget_feature=ssse3"]

This comment has been minimized.

Copy link
@dvdplm

dvdplm Jun 17, 2019

Author Collaborator

Note to future coders: rustflags = ["-C target_feature="+aes,+sse2,+ssse3"] does not work (but does work when used with RUSTFLAGS).

0 comments on commit 9999b71

Please sign in to comment.