diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2019-10-07 03:33:41 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-10-07 03:48:41 +0200 |
commit | bcacb00fc89c04ec0b5e7ebefe3b605b266cef57 (patch) | |
tree | 425b3b55527fcf79090639250adbe53ed6b45b93 /scripts/libmakepkg/buildenv.sh.in | |
parent | 48752f1b4b16cd1dad56649cd36b253494aa9ff1 (diff) | |
download | pacman-bcacb00fc89c04ec0b5e7ebefe3b605b266cef57.tar.gz pacman-bcacb00fc89c04ec0b5e7ebefe3b605b266cef57.tar.xz |
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 'scripts/libmakepkg/buildenv.sh.in')
-rw-r--r-- | scripts/libmakepkg/buildenv.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/buildenv.sh.in b/scripts/libmakepkg/buildenv.sh.in index 085e1380..48c95313 100644 --- a/scripts/libmakepkg/buildenv.sh.in +++ b/scripts/libmakepkg/buildenv.sh.in @@ -36,5 +36,5 @@ prepare_buildenv() { done # ensure all necessary build variables are exported - export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS MAKEFLAGS CHOST + export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS RUSTFLAGS MAKEFLAGS CHOST } |