Repository navigation
Remove BUILD_LIBS_NATIVE_BROWSER - #137811
MichalStrehovsky merged 1 commit into
Conversation
Build browser native support unconditionally and use the normal native library layout. Resolve relative Rollup output paths against the CMake build root and align the standalone Rollup default. Co-authored-by: Copilot <[email protected]> Copilot-Session: a4f8b2ff-3151-4b4a-9fae-3da83e333b32 Copilot-Session: 93c6c88d-0396-4e5b-a4da-92892d730c12
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🔵 Needs a closer look
Expanded Mono build paths and shared npm/Rollup prerequisites require maintainer confirmation of legacy support expectations and browser CoreCLR/NativeAOT packaging validation, with no builds run.
No open issues 🎉
What changed in this PR
Simplifies browser native-library builds by removing BUILD_LIBS_NATIVE_BROWSER and adopting the standard native-library layout, avoiding propagation of the special-case layout into NativeAOT support.
Changes:
- Includes browser native support whenever the target is browser, without the extra build flag.
- Resolves relative Rollup destinations against the CMake build root and aligns the standalone default.
- Updates live-build handling of browser native archives.
| File | Description |
|---|---|
src/native/rollup.config.defines.js |
Removes /lib from the default Rollup output path. |
src/native/libs/Common/JavaScript/CMakeLists.txt |
Resolves the Rollup destination against the CMake build root. |
src/native/libs/CMakeLists.txt |
Removes flag-based browser gating and defaults the destination to .. |
src/coreclr/CMakeLists.txt |
Removes the obsolete flag from CoreCLR’s native-library side-build. |
eng/native.wasm.targets |
Stops passing the obsolete CMake flag. |
eng/liveBuilds.targets |
Updates browser archive selection for live-build assets. |
Review effort: Balanced
I think this is not a Mono hack, but statically linked corerun hack. Does corerun work after this ? |
How do I validate? We wouldn't see failing Browser legs in the CI if this broke corerun? |
|
Here's what AI says: The flag started as a CoreCLR-versus-Mono switch. The special layout came later, from coupling JavaScript generation to the native-library install destination—not from an inherent static-linking requirement.
The layout rule arrived in #120666. That change reused I found no documented requirement for the directory to be named For your removal specifically, corerun already supplies |
|
/ba-g the failures are timeout/infra errors in non-WASM legs |
Did we now remove enough of the Mono Browser infra that we can start doing things that break it? The
STATIC_LIB_DESTINATIONhack aroundBUILD_LIBS_NATIVE_BROWSERwould need to be propagated in places for native AOT. I'd prefer just deleting it.Build browser native support unconditionally and use the normal native library layout. Resolve relative Rollup output paths against the CMake build root and align the standalone Rollup default.