Skip to content

Comments

Migrate AddKeepAlivesStep from ILLink custom step#10837

Draft
sbomer wants to merge 1 commit intomainfrom
dev/sbomer/addkeepalives
Draft

Migrate AddKeepAlivesStep from ILLink custom step#10837
sbomer wants to merge 1 commit intomainfrom
dev/sbomer/addkeepalives

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Feb 19, 2026

Moves AddKeepAlives to assembly modifier pipeline.

This may depend on some fixes I'm working on in #10695.

…Pipeline

Move AddKeepAlivesStep out of the ILLink trimmer pipeline so it runs
in the post-ILLink AssemblyModifierPipeline instead. This removes the
dual-compilation (#if ILLINK) pattern and simplifies the step to only
implement IAssemblyModifierPipelineStep.

- Remove AddKeepAlivesStep from Microsoft.Android.Sdk.ILLink.csproj
- Remove _TrimmerCustomSteps registration in TypeMap.LlvmIr.targets
- Add AddKeepAlives property and step to AssemblyModifierPipeline
- Pass AddKeepAlives to AssemblyModifierPipeline in Common.targets
- Remove duplicate property/step from LinkAssembliesNoShrink (now
  inherited from base class)
@sbomer
Copy link
Member Author

sbomer commented Feb 20, 2026

Needs the fixes from #10695 to avoid modifying assemblies in place.

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