build-helper/rust.sh: prevent stripping by cargo

Some rust pacakges (e.g. eza and bat) do set strip = true
in their release profile which removes the debug symbols
before xbps-src can split them.

closes #47459
This commit is contained in:
John 2023-11-28 11:54:54 +01:00 committed by John Zimmermann
parent b9d99e8826
commit ee59a36bdd
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ else
unset CARGO_BUILD_TARGET
fi
# prevent cargo stripping debug symbols
export CARGO_PROFILE_RELEASE_STRIP=false
# For cross-compiling rust -sys crates
export PKG_CONFIG_ALLOW_CROSS=1