Merge pull request #3960 from element-hq/quenting/build-cpu

Use the x86-64-v2 pseudo-ABI when building for x86_64 targets
This commit is contained in:
Quentin Gliech
2025-02-05 13:04:55 +01:00
committed by GitHub
+4
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"]