-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[browser][coreCLR] apply runtime options #123331
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
base: main
Are you sure you want to change the base?
Conversation
|
Tagging subscribers to this area: @agocke, @jeffschwMSFT, @elinor-fung |
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 refactors the CoreCLR initialization process for browser/WASM to pass runtime configuration options directly as function parameters instead of through environment variables. This enables linker features to work properly by making runtime options available during initialization.
Changes:
- Updated CoreCLR initialization to accept runtime configuration properties as parameters instead of environment variables
- Added support for merging
runtimeConfig.runtimeOptions.configPropertiesin loader configuration - Introduced new
BrowserHost_CreateHostContractfunction to separate host contract creation from initialization
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/native/libs/Common/JavaScript/types/ems-ambient.ts | Updated type definitions to add CharPtrPtr import and new function signatures for CreateHostContract and InitializeCoreCLR |
| src/native/corehost/browserhost/loader/config.ts | Added merging and normalization logic for runtimeConfig.runtimeOptions.configProperties |
| src/native/corehost/browserhost/libBrowserHost.footer.js | Refactored to remove environment variable setup from JS layer and updated dependency declarations |
| src/native/corehost/browserhost/host/host.ts | Implemented new initializeCoreCLR that builds runtime properties and passes them to C++ via parameters |
| src/native/corehost/browserhost/browserhost.cpp | Refactored to accept properties as function parameters instead of reading from environment variables |
radekdoulik
left a comment
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.
Thank you! LGTM
fix manual rollup run
so that linker features work