-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Remove corewasmrun
#120541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove corewasmrun
#120541
Conversation
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.
There was a problem hiding this 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 whenCORERUN_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 |
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
There was a problem hiding this 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
/ba-g Unrelated timeouts |
Update
corerun
to operate likecorewasmrun
whenmanually setting
CORERUN_IN_BROWSER
to1
insrc\coreclr\hosts\corerun\CMakeLists.txt
.This allows
corerun
to operate in the same mode ascorewasmrun
.