Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-10-06 21:33:41 -0400
committerAllan McRae <allan@archlinux.org>2019-10-07 11:48:41 +1000
commitbcacb00fc89c04ec0b5e7ebefe3b605b266cef57 (patch)
tree425b3b55527fcf79090639250adbe53ed6b45b93 /etc
parent48752f1b4b16cd1dad56649cd36b253494aa9ff1 (diff)
makepkg: add rust support for *FLAGS and debug-prefix-map
The rust language supports $RUSTFLAGS to be used automatically in all rustc invocations. Allow setting this in makepkg.conf (e.g. for optimization or debuginfo support), and teach debug+strip to pass the rustc command line argument necessary to rewrite source file paths in the debugging symbols. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/makepkg.conf.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
index 7e5da993..caf5114b 100644
--- a/etc/makepkg.conf.in
+++ b/etc/makepkg.conf.in
@@ -40,11 +40,13 @@ CHOST="@CHOST@"
#CFLAGS="-O2 -pipe"
#CXXFLAGS="-O2 -pipe"
#LDFLAGS=""
+#RUSTFLAGS="-C opt-level=2"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
#DEBUG_CFLAGS="-g"
#DEBUG_CXXFLAGS="-g"
+#DEBUG_RUSTFLAGS="-C debuginfo=2"
#########################################################################
# BUILD ENVIRONMENT