From 00665f717a7f5925e0dcdc387a83c38109a44d43 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 14 Sep 2024 15:27:51 -0700 Subject: 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. --- etc/makepkg.conf.d/rust.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2