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

[illink] refactor code sharing between ILLink and MSBuild tasks #9688

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonathanpeppers
Copy link
Member

We already have a few trimmer steps that run under both ILLink and the <LinkAssembliesNoShrink/> MSBuild task:

  • AddKeepAlivesStep
  • FixAbstractMethodsStep
  • FixLegacyResourceDesignerStep

We want to move various parts of the build to become new trimmer steps like above.

Previously, we also had to share these steps with the Xamarin.Android linker pipeline, but that's no longer the case. We can now cleanup how these trimmer steps are shared between ILLink and MSBuild, reducing the need for #if ILLINK in many places.

I also removed various Mono linker source code that is unused.

We already have a few trimmer steps that run under both ILLink and the
`<LinkAssembliesNoShrink/>` MSBuild task:

* `AddKeepAlivesStep`
* `FixAbstractMethodsStep`
* `FixLegacyResourceDesignerStep`

We want to move various parts of the build to become new trimmer steps
like above.

Previously, we also had to share these steps with the Xamarin.Android
linker pipeline, but that's no longer the case. We can now cleanup how
these trimmer steps are shared between ILLink and MSBuild, reducing
the need for `#if ILLINK` in many places.

I also removed various Mono linker source code that is unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant