You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TrimmableTypeMap] Generate NativeAOT bootstrap Java sources in trimmable path #11210
The trimmable typemap generator handles runtime provider, application registration, and JCW Java source generation — replacing GenerateAdditionalProviderSources for the CoreCLR path. However, it does not generate the two NativeAOT-specific bootstrap Java files:
JavaInteropRuntime.java — .NET runtime initialization entry point (template with @MAIN_ASSEMBLY_NAME@)
NativeAotEnvironmentVars.java — baked-in environment variable names/values for the native runtime
These files are currently only generated by GenerateAdditionalProviderSources (in TypeMap.LlvmIr.targets), which is not called from the trimmable path. Without them, NativeAotRuntimeProvider.java fails to compile because it references JavaInteropRuntime and NativeAotEnvironmentVars.
Proposed fix
Add JavaInteropRuntime.java and NativeAotEnvironmentVars.java generation to the trimmable typemap generator, conditioned on _AndroidRuntime == NativeAOT. This is consistent with the existing pattern where the trimmable generator took over the CoreCLR pieces from GenerateAdditionalProviderSources.
Activity
Skip NativeAOT incremental build test pending #11210
Revert TrimmableTypeMapBuildTests changes
Add GenerateNativeAotBootstrapSources task for trimmable path
Add GenerateNativeAotBootstrapSources task for trimmable path
Add GenerateNativeAotBootstrapSources task for trimmable path
[NativeAOT] Decouple ILC from ILLink for trimmable type map path (#11183
[NativeAOT] Add GenerateNativeAotBootstrapSources task (dotnet#11255)