diff options
author | figsoda <figsoda@pm.me> | 2023-06-20 20:03:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 20:03:11 -0400 |
commit | 82ee5cb909698ca1ecf74c70004e2312f779ac16 (patch) | |
tree | 9b2cdd9d3f2000b20f4f0be2996e2e5e9eb38d9e /pkgs/build-support/rust | |
parent | 74d0f1c45269764544059d08935ac5a21af3b747 (diff) | |
parent | f5d83840943fb336a89d220e104045d7771df68e (diff) | |
download | nixpkgs-82ee5cb909698ca1ecf74c70004e2312f779ac16.tar nixpkgs-82ee5cb909698ca1ecf74c70004e2312f779ac16.tar.gz nixpkgs-82ee5cb909698ca1ecf74c70004e2312f779ac16.tar.bz2 nixpkgs-82ee5cb909698ca1ecf74c70004e2312f779ac16.tar.lz nixpkgs-82ee5cb909698ca1ecf74c70004e2312f779ac16.tar.xz nixpkgs-82ee5cb909698ca1ecf74c70004e2312f779ac16.tar.zst nixpkgs-82ee5cb909698ca1ecf74c70004e2312f779ac16.zip |
Merge pull request #236490 from alyssais/cargo-strip
Diffstat (limited to 'pkgs/build-support/rust')
-rw-r--r-- | pkgs/build-support/rust/hooks/cargo-build-hook.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/rust/hooks/cargo-build-hook.sh b/pkgs/build-support/rust/hooks/cargo-build-hook.sh index 7503fae4cd7..af94e02e38a 100644 --- a/pkgs/build-support/rust/hooks/cargo-build-hook.sh +++ b/pkgs/build-support/rust/hooks/cargo-build-hook.sh @@ -5,6 +5,10 @@ cargoBuildHook() { runHook preBuild + # Let stdenv handle stripping, for consistency and to not break + # separateDebugInfo. + export "CARGO_PROFILE_${cargoBuildType@U}_STRIP"=false + if [ ! -z "${buildAndTestSubdir-}" ]; then # ensure the output doesn't end up in the subdirectory export CARGO_TARGET_DIR="$(pwd)/target" |