Skip to content

Link wasi-emulated-getpid on native AOT - #136269

Merged
MichalStrehovsky merged 1 commit into
mainfrom
MichalStrehovsky-patch-1
Oct 22, 2026
Merged

MichalStrehovsky merged 1 commit into
mainfrom
MichalStrehovsky-patch-1

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

It is what we define when building the runtime sources:

add_compile_definitions(_WASI_EMULATED_SIGNAL)
add_compile_definitions(_WASI_EMULATED_PROCESS_CLOCKS)
add_compile_definitions(_WASI_EMULATED_MMAN)
add_compile_definitions(_WASI_EMULATED_GETPID)

And then link with:

# WASI emulated libc helpers the CoreCLR PAL pulls in.
add_link_options(-lwasi-emulated-process-clocks)
add_link_options(-lwasi-emulated-signal)
add_link_options(-lwasi-emulated-mman)
add_link_options(-lwasi-emulated-getpid)

It remains a question whether we want to ship on that on native AOT, we might want to revisit as we start looking at size.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

@MichalStrehovsky
MichalStrehovsky merged commit 2b2bb51 into main Oct 22, 2026
119 of 121 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the MichalStrehovsky-patch-1 branch October 22, 2026 04:54
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 23, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 22, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — d6c19777 Deployed Oct 22, 2026 by MichalStrehovsky via conclusion #10979
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-NativeAOT-coreclr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants