From 7e07cce85334437cddeeba071f4639c2f5e545e3 Mon Sep 17 00:00:00 2001
From: Xiao Pan <xyz@flylightning.xyz>
Date: Sat, 14 Sep 2024 15:26:58 -0700
Subject: default rust.conf

---
 etc/makepkg.conf.d/rust.conf | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 etc/makepkg.conf.d/rust.conf

(limited to 'etc/makepkg.conf.d/rust.conf')

diff --git a/etc/makepkg.conf.d/rust.conf b/etc/makepkg.conf.d/rust.conf
new file mode 100644
index 00000000..092bf275
--- /dev/null
+++ b/etc/makepkg.conf.d/rust.conf
@@ -0,0 +1,19 @@
+#!/hint/bash
+# shellcheck disable=2034
+
+#
+# /etc/makepkg.conf.d/rust.conf
+#
+
+#########################################################################
+# RUST LANGUAGE SUPPORT
+#########################################################################
+
+# 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"
+
+# Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
+# Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for
+# more details on the available flags.
+DEBUG_RUSTFLAGS="-C debuginfo=2"
-- 
cgit v1.2.3-70-g09d2