Repository navigation
Fix NativeAOT test layout's CoreCLR runtime dependency - #135951
Merged
Merged
Conversation
NativeAOT WASI layout generation fails with: "The 'coreclr' subset must be built before building this project." Desktop clr.aot builds incidentally populate RuntimeFiles with the target JIT in sharedFramework. WASM's host-side cross-JIT is not staged there, leaving RuntimeFiles empty despite available NativeAOT outputs. The necessary fix skips CoreCLR runtime resolution for NativeAOT layouts while preserving other staging. As hygiene, also omit unused WASM host assets and the WASI ReadyToRun composer requirement. Co-authored-by: Copilot <[email protected]> Copilot-Session: a6f3a617-acae-4f4f-95d3-20b2a0bac43c
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
agocke
approved these changes
Oct 17, 2026
Member
|
/ba-g unrelated diagnostics failures |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove NativeAOT test layout generation's accidental dependency on CoreCLR runtime files.
NativeAOT WASI test builds fail during Core_Root generation with "The 'coreclr' subset must be built before building this project", even when the NativeAOT SDK and compiler are available. Desktop NativeAOT builds incidentally satisfy this check by staging a target JIT into
sharedFramework; the WASM cross-JIT lives elsewhere.Skip CoreCLR runtime-file resolution in NativeAOT mode while preserving the remaining layout generation and NativeAOT tool staging. Also omit unused WASM host/runtimepack assets and the WASI ReadyToRun composer requirement in that mode. CoreCLR test layouts retain their existing behavior.
Validation
On the combined local NativeAOT WASI bringup tree, including other unmerged enablement:
.\src\tests\build.cmd nativeaot checked tree nativeaot wasm wasiregenerated the layout and reached unrelated test compilation failures..\src\tests\build.cmd nativeaot checked test nativeaot\SmokeTests\AttributeTrimming\AttributeTrimming.csproj wasm wasipassed.This branch contains only this cherry-picked commit from
main; it was not built independently. Automated WASI test execution and Unix-host bringup are not included.Note
This PR description was generated by GitHub Copilot.