Skip to content

Fix Dir.statFile for WASI when linking libc#17029

Merged
kubkon merged 2 commits intoziglang:masterfrom
squeek502:wasi-statFile-libc
Sep 1, 2023
Merged

Fix Dir.statFile for WASI when linking libc#17029
kubkon merged 2 commits intoziglang:masterfrom
squeek502:wasi-statFile-libc

Conversation

@squeek502
Copy link
Member

statFile now only uses os.fstatatWasi when not linking libc, matching the pattern used throughout other Dir functions. This fixes the compilation error: error: struct 'c.wasi.Stat' has no member named 'fromFilestat' (which the added test would have failed with)

Unblocks #16878

`statFile` now only uses `os.fstatatWasi` when not linking libc, matching the pattern used throughout other `Dir` functions. This fixes the compilation error: `error: struct 'c.wasi.Stat' has no member named 'fromFilestat'` (which the added test would have failed with)
@kubkon
Copy link
Member

kubkon commented Sep 1, 2023

Excellent work!

@kubkon kubkon merged commit 5dc2db8 into ziglang:master Sep 1, 2023
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.

2 participants