Repository navigation
Fix remaining linking failures on native AOT/WASI - #135766
Merged
MichalStrehovsky merged 3 commits intoOct 15, 2026
Merged
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: c78266f3-08e3-4918-b2e5-9fe0ddf2ca17
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
|
Azure Pipelines: Successfully started running 4 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
jkotas
reviewed
Oct 14, 2026
This was referenced Oct 14, 2026
Closed
Co-authored-by: Copilot <[email protected]> Copilot-Session: c78266f3-08e3-4918-b2e5-9fe0ddf2ca17
Co-authored-by: Copilot <[email protected]> Copilot-Session: c78266f3-08e3-4918-b2e5-9fe0ddf2ca17
jkotas
approved these changes
Oct 14, 2026
Member
Author
|
/ba-g the OSX machine is "This job was abandoned." and everything is hung on that. This is a build only change and builds passed. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Part of a series of pull requests that enable compiling, linking, and running a
Console.WriteLinehello world on WASI/native AOT.Summary
Supply the remaining native compatibility definitions needed by the WASI portable runtime:
__cxa_thread_atexitinstdcppshim.cppwithout requiring libc++abi. A privateWASI_SINGLE_THREADEDdefinition enables it only for WASI without pthreads. Cleanup callbacks run in reverse registration order at process exit, including callbacks registered during destruction.unix/cgroupcpu.cppfrom the full-runtime list to the common Unix source list alongsidePalUnix.cpp. Wasm gets its existing non-Linux fallbacks, not Linux cgroup support.The WASI SDK does define
__cxa_thread_atexitin libc++abi; the compatibility implementation supports NativeAOT links that intentionally omit that library. It is not a no-op replacement for TLS cleanup.Validation
.\build.cmd clr.nativeaotruntime -rc Checked -os wasi -arch wasm- passed with zero warnings/errors.libstdc++compat.awithout implicit libc++abi - linked, passed Wasm validation, and executed all four expected destructor callbacks.cgroupcpu.cppcompilation.These results are from the combined local bringup tree, including prerequisite NativeAOT/Wasm enablement, not a fresh build of this isolated main-based branch. The focused probes are local fixtures, not tests added by this PR.
Note
This PR description was generated by GitHub Copilot.