# wasm: link dynamically by default when targeting wasm · gitcafe/zig

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

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

Visibility: public

Requested revision: 3a5d0f7700dc28b523e17ba461874b807786b939

Requested commit: 3a5d0f7700dc28b523e17ba461874b807786b939

Commit: 3a5d0f7700dc28b523e17ba461874b807786b939

Tree: 3f5c2aa584c7b652fa410cb6b9a214af300b963b

Author: Jakub Konka

Committer: Jakub Konka

## Message

````
wasm: link dynamically by default when targeting wasm

This matches the behaviour of other languages and leaves us
the ability to create actual static Wasm archives with

```
zig build-lib -static some.zig
```

which can then be combined with other Wasm object files and linked
into either a Wasm lib or executable using `wasm-ld`.

Update langref to reflect the fact we now ship WASI libc.

````

## Parents

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

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