Add ILLink.Substitutions.xml files for System.Private.CoreLib.#37615
Add ILLink.Substitutions.xml files for System.Private.CoreLib.#37615eerhardt merged 4 commits intodotnet:masterfrom
Conversation
|
Tagging subscribers to this area: @ViktorHofer |
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Substitutions.NoArmIntrinsics.xml
Outdated
Show resolved
Hide resolved
src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.Substitutions.wasm.xml
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
FYI @layomia since you have a PR out changing this too.
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Substitutions.32bit.xml
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Substitutions.NoArmIntrinsics.xml
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
Outdated
Show resolved
Hide resolved
|
Note that this work is blocked by the failing CI. The failure occurs when creating a Windows PDB for the portable PDB: Debugging into Pdb2Pdb.exe, I see the first problem is that we are trimming away locals from this method: The public static int PopCount(uint value)
{
if (Popcnt.IsSupported)
{
return (int)Popcnt.PopCount(value);
}
!AdvSimd.Arm64.IsSupported;
return BitOperations.<PopCount>g__SoftwareFallback|9_0(value);
}@vitek-karas @marek-safar - I logged dotnet/linker#1260 for this. After that, Pdb2Pdb is trying to work on this method: But it is throwing a From doing a little debugging, it appears that the top scope is getting closed in I've opened dotnet/symreader-converter#174 for the Pdb2Pdb crash, which is blocking clean CI. |
d4c4c8a to
923a634
Compare
|
I've removed the |
Ported the settings from https://github.com/mono/mono/blob/eaa32d13659f0a6b6b5e62ddb49af68b1f9efb6c/sdks/wasm/src/linker-subs.xml and split them out as appropriate to reduce duplication across the different platform builds. Contributes to dotnet#31785
923a634 to
ba2fa03
Compare
Ported the settings from https://github.com/mono/mono/blob/eaa32d13659f0a6b6b5e62ddb49af68b1f9efb6c/sdks/wasm/src/linker-subs.xml and split them out as appropriate to reduce duplication across the different platform builds.
Contributes to #31785
The only API proposed in #31785 that I didn't cover was
System.Runtime.InteropService.OSPlatformsince there isn't a good way of supporting that in the linker, AFAIK.For a "Hello, World" wasm app,
System.Private.CoreLib.dllsizes go from: