dotnet: strip debug info

This reduces the sdk closure size from 739.2M/2.5G to 494.5M/584.0M.
This commit is contained in:
David McFarland 2024-03-11 22:32:42 -03:00
parent b1da94375c
commit 88e8d87fed

View File

@ -311,6 +311,13 @@ in stdenv.mkDerivation rec {
runHook postInstall
'';
# dotnet cli is in the root, so we need to strip from there
# TODO: should we install in $out/share/dotnet?
stripDebugList = [ "." ];
# stripping dlls results in:
# Failed to load System.Private.CoreLib.dll (error code 0x8007000B)
stripExclude = [ "*.dll" ];
passthru = {
inherit releaseManifest buildRid targetRid;
icu = _icu;