mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 04:25:14 +00:00
build-rust-crate: add stripExclude for .rlib
This commit is contained in:
parent
5148520bfa
commit
4270524d3f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user