summaryrefslogtreecommitdiff
path: root/etc/makepkg.conf.d
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2024-09-14 15:26:58 -0700
committerXiao Pan <xyz@flylightning.xyz>2024-09-14 16:19:47 -0700
commit2961b3dfe5f5b130498d12232334847180a55a73 (patch)
tree0d1549f0a4ce43f9362241a71a0d7a2ae07bfed4 /etc/makepkg.conf.d
parent14a784622398749845bcb6a6db219fa778ee15bb (diff)
default rust.conf
Diffstat (limited to 'etc/makepkg.conf.d')
-rw-r--r--etc/makepkg.conf.d/rust.conf19
1 files changed, 19 insertions, 0 deletions
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"