build-rust-crate: add stripExclude for .rlib

This commit is contained in:
Bouke van der Bijl 2023-09-18 13:29:22 +02:00
parent 5148520bfa
commit 4270524d3f

View File

@ -353,6 +353,10 @@ crate_: lib.makeOverridable
extraRustcOpts buildTests codegenUnits;
};
dontStrip = !release;
# We need to preserve metadata in .rlib, which might get stripped on macOS. See #218712
stripExclude = [ "*.rlib" ];
installPhase = installCrate crateName metadata buildTests;
# depending on the test setting we are either producing something with bins