abuild: configure cargo for debug symbols

Should make -dbg subpackages and DEBUG=1 just work for most packages
that use cargo.
This commit is contained in:
Sertonix 2025-03-15 14:56:49 +01:00 committed by Natanael Copa
parent f6ed352d6f
commit 2afbdf9fdb

View File

@ -2978,6 +2978,8 @@ if [ -n "$DEBUG" ] || subpackage_types_has "dbg"; then
CFLAGS="$CFLAGS -g"
CXXFLAGS="$CXXFLAGS -g"
DFLAGS="$DFLAGS -g"
export CARGO_PROFILE_RELEASE_DEBUG=true
export CARGO_PROFILE_RELEASE_STRIP=none
if [ -n "$DEBUG" ]; then
options="$options !strip"
fi