Unverified Commit 819661b3 authored by Graham King's avatar Graham King Committed by GitHub
Browse files

chore: Build for slightly more modern CPUs (#7220)


Signed-off-by: default avatarGraham King <grahamk@nvidia.com>
parent edd50f64
...@@ -4,3 +4,12 @@ ...@@ -4,3 +4,12 @@
[build] [build]
# tokio-console needs this # tokio-console needs this
rustflags = ["--cfg", "tokio_unstable"] rustflags = ["--cfg", "tokio_unstable"]
# Target Haswell (2013) era+ machines. That gets us AVX-2
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=x86-64-v3", "--cfg", "tokio_unstable"]
# Target Graviton 2 / Ampere Altra + machines. NEON vector, and LSE atomics.
[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=neoverse-n1", "--cfg", "tokio_unstable"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment