Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/doc/makepkg.conf.5.asciidoc
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 /doc/makepkg.conf.5.asciidoc
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 'doc/makepkg.conf.5.asciidoc')
-rw-r--r--doc/makepkg.conf.5.asciidoc9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/makepkg.conf.5.asciidoc b/doc/makepkg.conf.5.asciidoc
index 178a1f1c..b7496324 100644
--- a/doc/makepkg.conf.5.asciidoc
+++ b/doc/makepkg.conf.5.asciidoc
@@ -72,6 +72,10 @@ Options
**CXXFLAGS=**"cxxflags"::
Flags used for the C++ compiler; see CFLAGS for more info.
+**RUSTFLAGS=**"rustflags"::
+ Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
+ linkman:rustc[1] for more details on the available flags.
+
**LDFLAGS=**"ldflags"::
Flags used for the linker. Several options may be specified with common
usage resembling ``-Wl,--hash-style=gnu''. Read ld(1) for more details on
@@ -89,6 +93,11 @@ Options
**DEBUG_CXXFLAGS=**"debug_cxxflags"::
Debug flags used for the C++ compiler; see DEBUG_CFLAGS for more info.
+**DEBUG_RUSTFLAGS=**"debug_rustflags"::
+ 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.
+
**BUILDENV=(**!distcc !color !ccache check !sign**)**::
This array contains options that affect the build environment; the defaults
are shown here. All options should always be left in the array; to enable