Skip to content

Conversation

AaronRobinsonMSFT
Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT commented Aug 23, 2025

This PR updates the current wasm build for corewasmrun, which is wasm's version of corerun, and places all artifacts in the correct bin location like other corerun scenarios. The work flow for corewasmrun is now much simpler.

  1. ./build.sh -os browser -c Debug --subset clr.runtime+libs
  2. ./dotnet.sh build -c Release src/mono/sample/wasm/simple-server
  3. Navigate to the build output - (for example, artifacts/bin/coreclr/browser.wasm.Debug/corewasmrun)
  4. Launch the simpler-server, ./src/mono/sample/wasm/simple-server/bin/Release/net8.0/HttpServer, in the corewasmrun directory.

Copy link
Contributor

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Copilot

This comment was marked as outdated.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR standardizes the build process for corewasmrun (the WebAssembly version of corerun) by integrating it into the regular build workflow and ensuring all artifacts are placed in the correct bin location like other corerun scenarios.

Key changes include:

  • Integrating WASM host building into the standard CoreCLR build process
  • Adding proper install handling for WASM executable assets (JS, WASM, and data files)
  • Updating subset dependencies to include clr.corelib for browser builds

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/coreclr/inc/pinvokeoverride.h Changes include directive from quotes to angle brackets for coreclrhost.h
src/coreclr/inc/bundle.h Changes include directive from quotes to angle brackets for coreclrhost.h
src/coreclr/hosts/corewasmrun/CMakeLists.txt Reorganizes target linking and updates install destination to dedicated corewasmrun directory
src/coreclr/CMakeLists.txt Simplifies host subdirectory inclusion logic to build hosts on all non-mobile platforms
eng/native/functions.cmake Adds WASM-specific install handling for executable assets (.js, .wasm, .data files)
eng/Subsets.props Adds clr.corelib dependency to browser builds in subset replacement logic

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit 48a3614 into dotnet:main Aug 24, 2025
155 of 158 checks passed
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the wasm_corerun_build branch August 24, 2025 15:42
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants