Use the x86-64-v2 pseudo-ABI when building for x86_64 targets

This commit is contained in:
Quentin Gliech
2025-02-05 12:19:51 +01:00
parent 9fbb1e73df
commit 7565bbdae2

4
.config/cargo.toml Normal file
View File

@@ -0,0 +1,4 @@
# On x86_64, we target the x86-64-v2 psABI, as it is a good compromise between
# modern CPU instructions and compatibility.
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=x86-64-v2"]