Skip to content

Commit 158f364

Browse files
authored
Merge pull request #3960 from element-hq/quenting/build-cpu
Use the x86-64-v2 pseudo-ABI when building for x86_64 targets
2 parents e878ec5 + 0a716b9 commit 158f364

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.config/cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# On x86_64, we target the x86-64-v2 psABI, as it is a good compromise between
2+
# modern CPU instructions and compatibility.
3+
[target.x86_64-unknown-linux-gnu]
4+
rustflags = ["-C", "target-cpu=x86-64-v2"]

0 commit comments

Comments
 (0)