Repository navigation
Enable building WASI runtime packs with native AOT - #10853
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 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
There was a problem hiding this comment.
🔵 Needs a closer look
Runtime-owner validation is needed to confirm that the generated WASI/browser NativeAOT packs can publish, link, and run applications, which static build-graph review cannot establish.
No open issues 🎉
What changed in this PR
Enables WASI Native AOT runtime-pack builds in the VMR and adds a dedicated WASI CoreCLR pipeline job, following the existing browser setup. These changes enable build outputs without establishing Browser Native AOT or WASI CoreCLR runtime functionality.
Changes:
- Extends CoreCLR subset selection to WASI and includes Native AOT libraries in browser builds.
- Enables Native AOT runtime packs for non-Mono WebAssembly builds while disabling Native AOT components unsupported by the build SDK.
- Adds the WASI CoreCLR short-stack job and includes it in downstream dependencies.
| File | Description |
|---|---|
src/runtime/eng/Subsets.props |
Extends WebAssembly CoreCLR subsets and adds browser Native AOT libraries. |
repo-projects/runtime.proj |
Updates WebAssembly runtime-pack arguments and the SDK compatibility restriction. |
eng/pipelines/templates/stages/vmr-verticals.yml |
Adds the WASI CoreCLR build job and downstream dependency. |
Review effort: Balanced
Member
cc @akoeplinger |
This was referenced Nov 11, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Also enables CoreCLR, but I'm not sure if they actually work. It would be a lot more work to exclude CoreCLR so I just left it in.
Also enables Browser, but I'm pretty sure it doesn't work. It would be more work to exclude native AOT on Browser and we'll want it eventually anyway.
dotnet-unified-build with this change: https://dev.azure.com/dnceng/internal/_build/results?buildId=3131429&view=results
Mirrors #5954
Cc @jkoritzinsky @akoeplinger @dotnet/ilc-contrib
Cc @kotlarmilos - not sure how far along is #9909 to merge