# cc,wasi: package emulations as static archives · gitcafe/zig

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

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

Visibility: public

Requested revision: 93a4403271ef62d8ae2cd10f58cc23d4b7bbdf4d

Requested commit: 93a4403271ef62d8ae2cd10f58cc23d4b7bbdf4d

Commit: 93a4403271ef62d8ae2cd10f58cc23d4b7bbdf4d

Tree: cffa7232a2e239a72e38648613768b0c3c5aedde

Author: Jakub Konka

Committer: Jakub Konka

## Message

````
cc,wasi: package emulations as static archives

This replicates the expected behavior when using `clang` with
upstream `wasi-libc` sysroot: linking emulated subcomponents
such as process clocks or signals requires an explicit link flag
in the compiler invocation, for example:

```
zig cc -target wasm32-wasi -lwasi-emulated-process-clocks main.c -o main.wasm
```

````

## Parents

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

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