Skip to content

Conversation

AaronRobinsonMSFT
Copy link
Member

Update corerun to operate like corewasmrun when
manually setting CORERUN_IN_BROWSER to 1 in
src\coreclr\hosts\corerun\CMakeLists.txt.

This allows corerun to operate in the same mode as corewasmrun.

Update corerun to operate like corewasmrun when
manually setting `CORERUN_IN_BROWSER` to `1` in
src\coreclr\hosts\corerun\CMakeLists.txt.

This allows corerun to operate in the same mode as
corewasmrun.
@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 11.0.0 milestone Oct 8, 2025
@AaronRobinsonMSFT AaronRobinsonMSFT added test-enhancement Improvements of test source code runtime-coreclr specific to the CoreCLR runtime labels Oct 8, 2025
@Copilot Copilot AI review requested due to automatic review settings October 8, 2025 18:12
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 8, 2025
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 removes the separate corewasmrun project and consolidates its functionality into the main corerun host. Users can now configure corerun to operate in browser mode by setting CORERUN_IN_BROWSER to 1 in the CMakeLists.txt file.

  • Removes the entire corewasmrun project including its source files, build configuration, and documentation references
  • Updates corerun to conditionally support browser execution mode when CORERUN_IN_BROWSER is enabled
  • Refactors WASM-specific functionality and file handling to be configurable within the unified corerun host

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/coreclr/hosts/corewasmrun/libCorewasmrun.pre.js Removes JavaScript prerun configuration for the old corewasmrun
src/coreclr/hosts/corewasmrun/corewasmrun.cpp Removes the standalone C++ implementation for corewasmrun
src/coreclr/hosts/corewasmrun/CMakeLists.txt Removes the CMake build configuration for the corewasmrun project
src/coreclr/hosts/corerun/wasm/pinvoke_override.hpp Refactors header guard names and function naming for better organization
src/coreclr/hosts/corerun/wasm/pinvoke_override.cpp Updates function names and visibility for integration with corerun
src/coreclr/hosts/corerun/wasm/libCorerun.pre.js Enhances JavaScript prerun logic to be more flexible with Module.preRun handling
src/coreclr/hosts/corerun/wasm/corerun.html Updates HTML template with new branding and configuration for corerun-wasm
src/coreclr/hosts/corerun/corerun.cpp Integrates WASM functionality and updates environment variable handling
src/coreclr/hosts/corerun/CMakeLists.txt Adds conditional browser support configuration and reorganizes WASM build logic
src/coreclr/hosts/CMakeLists.txt Removes reference to the corewasmrun subdirectory
docs/workflow/building/coreclr/wasm.md Updates documentation to reflect the new unified corerun approach

@AaronRobinsonMSFT AaronRobinsonMSFT added area-Infrastructure and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 8, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@radekdoulik radekdoulik left a comment

Choose a reason for hiding this comment

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

Thanks a lot for merging it

@radekdoulik radekdoulik enabled auto-merge (squash) October 9, 2025 11:50
@AaronRobinsonMSFT
Copy link
Member Author

/ba-g Unrelated timeouts

@radekdoulik radekdoulik merged commit e572463 into dotnet:main Oct 9, 2025
103 of 106 checks passed
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the remove_corewasmrun branch October 9, 2025 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Infrastructure runtime-coreclr specific to the CoreCLR runtime test-enhancement Improvements of test source code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants