Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up illink suppressions #96361

Merged
merged 7 commits into from
Jan 3, 2024
Merged

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Dec 29, 2023

The warnings suppressed in #96327 were not observed in dotnet/runtime because:

  • When trimming the library individually, IL2065 was suppressed, and
  • When trimming the OOB, the code was unreachable

The per-library trimming phase still had a bunch of analysis warnings suppressed that were never removed as part of #38033. This removes the NoWarn suppressions, and fixes up the ILLink.Suppressions.LibraryBuild.xml logic so that these xml suppressions get used during the library build. Since corelib has two separate suppression files (one shared, and one for coreclr), this changes the logic to allow multiple suppression xml files.

@ghost
Copy link

ghost commented Dec 29, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: sbomer
Assignees: sbomer
Labels:

area-Infrastructure-libraries

Milestone: -

CoreLib has a shared ILLink.Substitutions.LibraryBuild.xml, and
one that is specific to coreclr. Use an ItemGroup to support the use
of both.
eng/illink.targets Outdated Show resolved Hide resolved
eng/illink.targets Outdated Show resolved Hide resolved
eng/illink.targets Outdated Show resolved Hide resolved
eng/illink.targets Outdated Show resolved Hide resolved
eng/illink.targets Outdated Show resolved Hide resolved
eng/illink.targets Outdated Show resolved Hide resolved
- Keep properties in existing order
- Separate PropertyGroup/ItemGroup with blank lines
- Place all NoWarns on one line
eng/illink.targets Outdated Show resolved Hide resolved
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
@marek-safar marek-safar merged commit 23e5d54 into dotnet:main Jan 3, 2024
187 of 189 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants