# zig,cc,wasi: include emulated libs in WASI libc · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6f6182a5f3a4b027bbff6405600fd21b3ef8b86c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6f6182a5f3a4b027bbff6405600fd21b3ef8b86c

Requested commit: 6f6182a5f3a4b027bbff6405600fd21b3ef8b86c

Commit: 6f6182a5f3a4b027bbff6405600fd21b3ef8b86c

Tree: a70d28c3608c940b5ee4cabafe9ec90df54149bf

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
zig,cc,wasi: include emulated libs in WASI libc

This commit includes emulated libc sublibs that were not included
in the compilation and caching of WASI libc that ships with Zig.
The libs include (emulated): process clocks, getpid, mman, and signal.

With this change, it is now possible to successfully cross-compile
`wasm3` engine to WASI with `zig cc`.

For the future though, it might be worth considering splitting WASI
libc into libc-proper and modularised emulated libs as it is done
in upstream, and then have them included only if the user specifically
requests emulation/parts of it.

```

## Parents

- [2d43db1d767ec56183cd7cf3ee8c5fd929548beb](https://git.cafe/gitcafe/zig/commit/2d43db1d767ec56183cd7cf3ee8c5fd929548beb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6f6182a5f3a4b027bbff6405600fd21b3ef8b86c?format=markdown)
