Skip to content

Conversation

@kotlarmilos
Copy link
Member

@kotlarmilos kotlarmilos commented Nov 6, 2025

Description

The libclrinterpreter is already linked into the coreclr_static library for wasm in:

target_link_libraries(coreclr_static PUBLIC ${CORECLR_LIBRARIES} ${CORECLR_STATIC_CLRJIT_STATIC} ${CLRINTERPRETER_STATIC} cee_wks_core ${CEE_WKS_STATIC} ${FOUNDATION})

This PR updates the build to avoid shipping libclrinterpreter in the wasm runtime packs as separate static librariy, which resolves the manifest errors:

The following files are missing entries in the templated manifest: libclrinterpreter.dylib. 

Fixes #121399

Copilot AI review requested due to automatic review settings November 6, 2025 13:05
@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 Nov 6, 2025
Copy link
Contributor

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 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.a from WASM-specific build configurations (it's now statically linked into libcoreclr_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

@kotlarmilos kotlarmilos added os-browser Browser variant of arch-wasm area-CodeGen-Interpreter-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 6, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@pavelsavara
Copy link
Member

/ba-g CI timeouts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

buid coreclr iOS and browser package error

3 participants