-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Avoid shipping libclrinterpreter in wasm runtime packs #121405
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
Avoid shipping libclrinterpreter in wasm runtime packs #121405
Conversation
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 references to the standalone libclrinterpreter.a library from WASM/browser build configurations and generalizes the interpreter installation condition from platform-specific checks to a feature-based check.
Key changes:
- Removes
libclrinterpreter.afrom WASM-specific build configurations (it's now statically linked intolibcoreclr_static.a) - Changes the interpreter installation condition from iOS/tvOS/MacCatalyst-specific to
FEATURE_STATICALLY_LINKED, which is more maintainable and includes WASM - Ensures consistency across CMake build files, packaging manifests, and live build targets
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/native/corehost/browserhost/CMakeLists.txt | Removes libclrinterpreter.a from the list of native libraries to link for the browser host |
| src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props | Removes libclrinterpreter.a from the CoreCLR WASM-specific platform manifest |
| src/coreclr/interpreter/CMakeLists.txt | Generalizes install condition from iOS/tvOS/MacCatalyst-specific to FEATURE_STATICALLY_LINKED |
| eng/liveBuilds.targets | Removes libclrinterpreter.a from browser CoreCLR runtime files list |
|
Tagging subscribers to this area: @BrzVlad, @janvorli, @kg |
janvorli
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.
LGTM, thank you!
|
/ba-g CI timeouts |
Description
The libclrinterpreter is already linked into the coreclr_static library for wasm in:
runtime/src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt
Line 201 in e0837be
This PR updates the build to avoid shipping libclrinterpreter in the wasm runtime packs as separate static librariy, which resolves the manifest errors:
Fixes #121399