2019-06-18 20:24:21 +02:00
|
|
|
# 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"]
|
|
|
|
|
2018-01-11 15:41:23 +01:00
|
|
|
[target.x86_64-pc-windows-msvc]
|
2019-06-18 20:24:21 +02:00
|
|
|
# Enables the aes-ni instructions for RustCrypto dependency.
|
2020-03-01 23:40:59 +01:00
|
|
|
# Link the C runtime statically ; https://github.com/OpenEthereum/open-ethereum/issues/6643
|
2019-06-18 20:24:21 +02:00
|
|
|
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"]
|
|
|
|
|
2020-03-04 13:33:21 +01:00
|
|
|
[target.x86_64-unknown-linux-musl]
|
|
|
|
# Enables the aes-ni instructions for RustCrypto dependency.
|
|
|
|
rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"]
|