Skip to content

Enable building WASI runtime packs with native AOT - #10853

Merged
akoeplinger merged 3 commits into
mainfrom
MichalStrehovsky-patch-2
Nov 10, 2026
Merged

akoeplinger merged 3 commits into
mainfrom
MichalStrehovsky-patch-2

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

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

@MichalStrehovsky
MichalStrehovsky requested review from a team as code owners November 10, 2026 09:07
Copilot AI balanced review requested due to automatic review settings November 10, 2026 09:07
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team November 10, 2026 09:07
@azure-pipelines

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@kotlarmilos

Copy link
Copy Markdown
Member

Cc @kotlarmilos - not sure how far along is #9909 to merge

cc @akoeplinger

@akoeplinger akoeplinger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akoeplinger
akoeplinger merged commit 701448f into main Nov 10, 2026
10 of 12 checks passed
@akoeplinger
akoeplinger deleted the MichalStrehovsky-patch-2 branch November 10, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants