summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2024-09-14 15:27:51 -0700
committerXiao Pan <xyz@flylightning.xyz>2024-09-14 15:36:33 -0700
commit00665f717a7f5925e0dcdc387a83c38109a44d43 (patch)
tree2272dc5e191e7d9be3bd208773643c9390f17656
parent083c318b7af67937acda6798d81580c891fc4d62 (diff)
migrate configs from /etc/makepkg.conf
Commit https://gitlab.archlinux.org/pacman/pacman/-/commit/71764b6d4cdee1f74cfc603050ced59009950169 and https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/commit/099295fdcb33c875d0659510dc8e82969463a7c4 migrate rustflags to /etc/makepkg.conf.d/rust.conf. Note I also change opt-level to 3 because https://doc.rust-lang.org/cargo/reference/profiles.html shows opt-level 3 is all optimization which I want.
-rw-r--r--etc/makepkg.conf.d/rust.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/makepkg.conf.d/rust.conf b/etc/makepkg.conf.d/rust.conf
index 092bf275..fc881521 100644
--- a/etc/makepkg.conf.d/rust.conf
+++ b/etc/makepkg.conf.d/rust.conf
@@ -11,7 +11,7 @@
# Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
# linkman:rustc[1] for more details on the available flags.
-RUSTFLAGS="-Cforce-frame-pointers=yes"
+RUSTFLAGS="-Cforce-frame-pointers=yes -C opt-level=2 -C target-cpu=native"
# Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
# Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for