[browser] emscripten 6.0.2 follow up#130614
Merged
Merged
Conversation
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
Contributor
There was a problem hiding this comment.
Pull request overview
Prepares the WASM (browser) toolchain/runtime integration for newer Emscripten behavior by (1) avoiding an unsupported open flag under WASM and (2) ensuring emscripten_stack_get_current is preserved/exported for JS/native interop.
Changes:
- Skip adding
O_NOCTTYinSystemNative_Openwhen targeting WASM. - Add
emscripten_stack_get_currentas an explicit JS-library dependency for browser utils and corerun WASM host code. - Export
_emscripten_stack_get_currentfrom the Emscripten link step.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/native/libs/System.Native/pal_io.c | Avoids O_NOCTTY on WASM targets to prevent unsupported flag rejection. |
| src/native/libs/System.Native.Browser/libSystem.Native.Browser.Utils.footer.js | Adds emscripten_stack_get_current to the browser utils dependency list. |
| src/coreclr/hosts/corerun/wasm/libCorerun.js | Adds emscripten_stack_get_current to corerun’s WASM dependency list. |
| eng/native.wasm.targets | Exports _emscripten_stack_get_current during browser WASM linking. |
pavelsavara
marked this pull request as ready for review
July 15, 2026 12:45
|
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. |
maraf
approved these changes
Jul 15, 2026
akoeplinger
approved these changes
Jul 15, 2026
Open
3 tasks
Member
Author
|
/ba-g unrelated failures |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump to emsdk 6.0.2 (with dotnet patches) landed in #130631
O_NOCTTYinSystemNative_Openwhen targeting WASM.__stack_pointeras an explicit JS-library dependencyisSharedArrayBuffertoarrayBufferNeedsCopyand also respectbuffer.resizable