[browser][coreCLR] runtime pack#121174
Merged
pavelsavara merged 9 commits intodotnet:mainfrom Nov 4, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds CoreCLR WASM support to the runtime build system. The changes enable building CoreCLR for browser targets alongside the existing Mono support.
- Adds
CORERUN_LIBS_ONLYconditional gates to prevent installing runtime-specific native libraries to the sharedFramework when building for test scenarios - Includes CoreCLR WASM-specific native files in the platform manifest for browser targets
- Disables crossgen/R2R for browser/WASI targets and implements a copy-only strategy for CoreLib
- Updates the default CoreCLR subset for browser targets to include
clr.nativecorelib - Modifies CI pipeline to build packs in addition to clr+libs for WASM
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/native/libs/System.Native/CMakeLists.txt | Adds CORERUN_LIBS_ONLY guards around install commands for System.Native-Static and TimeZoneData libraries |
| src/native/libs/System.Native.Browser/CMakeLists.txt | Adds CORERUN_LIBS_ONLY guard around install command for System.Native.Browser-Static |
| src/native/libs/System.Globalization.Native/CMakeLists.txt | Adds CORERUN_LIBS_ONLY guards around install commands for globalization libraries and ICU files |
| src/native/libs/Common/JavaScript/CMakeLists.txt | Adds CORERUN_LIBS_ONLY guard around install commands for JavaScript rollup outputs |
| src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj | Disables PublishReadyToRun for browser and wasi targets |
| src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props | Adds CoreCLR WASM-specific native library files to platform manifest entries |
| src/coreclr/crossgen-corelib.proj | Adds browser-specific target that copies CoreLib instead of running crossgen |
| eng/pipelines/runtime.yml | Updates browser_wasm build to include packs subset |
| eng/Subsets.props | Adds clr.nativecorelib to default CoreCLR subsets for browser targets |
src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
radekdoulik
reviewed
Nov 4, 2025
radekdoulik
approved these changes
Nov 4, 2025
Member
Author
|
how can I built the coreclr browser.wasm package, there are error on my local build. |
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.
clr.nativecorelibthat just copiesSystem.Private.CoreLib.dllto expected placePlatformManifestFileEntryfor new librariesPublishReadyToRununtil [User Story] RyuJIT for WebAssembly (Wasm) #121141sharedFrameworkonly innativecmake root. Otherwise those fromcoreclrtree are duplicates when we create runtime pack.Fixes #120206