Skip to content

Commit c2f553d

Browse files
[xabt] Enable ManagedPeer native registration for LLVM typemap (#11735)
Non-trimmable LLVM typemap builds require Java.Interop's ManagedPeer native registration path. This makes the runtime host configuration explicit for the LLVM typemap target so the feature remains enabled when trimming/runtimeconfig options are generated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dc54c1c commit c2f553d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.TypeMap.LlvmIr.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
<ItemGroup>
2222
<RuntimeHostConfigurationOption Include="Microsoft.Android.Runtime.RuntimeFeature.TrimmableTypeMap"
23-
Value="false"
24-
Trim="true"
25-
/>
23+
Value="false" Trim="true" />
24+
<RuntimeHostConfigurationOption Include="Java.Interop.RuntimeFeature.ManagedPeerNativeRegistration"
25+
Value="true" Trim="true" />
2626
</ItemGroup>
2727

2828
<PropertyGroup>

0 commit comments

Comments
 (0)