From 7565bbdae2a38ae5b1c04d5fff70e1218f1137f1 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 5 Feb 2025 12:19:51 +0100 Subject: [PATCH] Use the x86-64-v2 pseudo-ABI when building for x86_64 targets --- .config/cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .config/cargo.toml diff --git a/.config/cargo.toml b/.config/cargo.toml new file mode 100644 index 000000000..81711ee47 --- /dev/null +++ b/.config/cargo.toml @@ -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"]