This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run cargo fix * Optimize imports * compiles * cleanup * Use Secret to store mac-key Truncate payload properly * cleanup * Reorg imports * brwchk hand waving * Review feedback * whitespace * error chain is dead * Build parity-ethereum with SSE2, SSSE3 and AES enabled This enables the `aesni` crate for 50x faster AES crypto. * Correct rustflag setting * List all target triples because [target.'cfg(…)'] is broken * whitespace * Enable hardware aes for CI builds * Add note about synchronizing changes * Remove "Linker" printout * Build artefacts to check hardware aesni * Skip signing windows binaries * Build windows like before * address grumble
- Loading branch information
Showing
4 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
# NOTE: if you make changes here, remember to also update: | ||
# scripts/test-linux.sh | ||
# scripts/build-linux.sh | ||
# scripts/build-windows.sh | ||
|
||
# Using 'cfg` is broken, see https://github.com/rust-lang/cargo/issues/6858 | ||
#[target.'cfg(target_arch = "x86_64")'] | ||
#rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"] | ||
|
||
# …so instead we list all target triples (Tier 1 64-bit platforms) | ||
[target.x86_64-unknown-linux-gnu] | ||
# Enables the aes-ni instructions for RustCrypto dependency. | ||
rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"] | ||
|
||
[target.x86_64-pc-windows-gnu] | ||
# Enables the aes-ni instructions for RustCrypto dependency. | ||
rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"] | ||
|
||
[target.x86_64-pc-windows-msvc] | ||
# Enables the aes-ni instructions for RustCrypto dependency. | ||
# Link the C runtime statically ; https://github.com/paritytech/parity-ethereum/issues/6643 | ||
rustflags = ["-Ctarget-feature=+crt-static"] | ||
rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3", "-Ctarget-feature=+crt-static"] | ||
|
||
[target.x86_64-apple-darwin] | ||
# Enables the aes-ni instructions for RustCrypto dependency. | ||
rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters