Skip to content

Make compatible with WASI#4497

Merged
vitaut merged 1 commit intofmtlib:masterfrom
whitequark:patch-1
Jul 14, 2025
Merged

Make compatible with WASI#4497
vitaut merged 1 commit intofmtlib:masterfrom
whitequark:patch-1

Conversation

@whitequark
Copy link
Copy Markdown
Contributor

WASI is a POSIX subset that doesn't have dup, dup2, or pipe system calls.

Fixes #4496.

It is not completely clear to me that this is the right fix, nor is it clear to me why fmt needs these syscalls in first place. But it seems to fix the build.

WASI is a POSIX subset that doesn't have `dup`, `dup2`, or `pipe` system calls.

Fixes fmtlib#4496.
@vitaut vitaut merged commit 553ec11 into fmtlib:master Jul 14, 2025
41 checks passed
@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented Jul 14, 2025

Merged, thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does not build on WebAssembly WASI due to lack of dup, dup2, and pipe system calls

2 participants