Skip to content

Commit

Permalink
[dotnet-linker] Add ProcessExportedFields to the list of steps we exe…
Browse files Browse the repository at this point in the history
…cute. Fixes xamarin#20061.

Missing: a test.

Fixes xamarin#20061.
  • Loading branch information
rolfbjarne committed Feb 8, 2024
1 parent e45ffd5 commit e1f8531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions dotnet/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@
<!-- This would not be needed if LinkContext.GetAssemblies () was exposed to us. -->
<_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="MarkStep" Type="Xamarin.Linker.CollectAssembliesStep" />
<_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="MarkStep" Type="MonoTouch.Tuner.CoreTypeMapStep" />
<_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="MarkStep" Type="MonoTouch.Tuner.ProcessExportedFields" />
<!-- The final decision to remove/keep the dynamic registrar must be done before the linking step -->
<_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="MarkStep" Type="MonoTouch.Tuner.RegistrarRemovalTrackingStep" />
<!-- TODO: these steps should probably run after mark. -->
Expand Down
3 changes: 3 additions & 0 deletions tools/dotnet-linker/dotnet-linker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@
<Compile Include="..\linker\MonoTouch.Tuner\PreserveSmartEnumConversions.cs">
<Link>external\tools\linker\MonoTouch.Tuner\PreserveSmartEnumConversions.cs</Link>
</Compile>
<Compile Include="..\linker\MonoTouch.Tuner\ProcessExportedFields.cs">
<Link>external\tools\linker\MonoTouch.Tuner\ProcessExportedFields.cs</Link>
</Compile>
<Compile Include="..\linker\MobileExtensions.cs">
<Link>external\tools\linker\MobileExtensions.cs</Link>
</Compile>
Expand Down

0 comments on commit e1f8531

Please sign in to comment.