# wasm: build static archive unless \-dynamic specified · gitcafe/zig

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

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

Visibility: public

Requested revision: fbd96907c9f53f01c211e6e3bbf15e53aaeb79f0

Requested commit: fbd96907c9f53f01c211e6e3bbf15e53aaeb79f0

Commit: fbd96907c9f53f01c211e6e3bbf15e53aaeb79f0

Tree: 1ec06e6689a76031e6a39ee330c04bfc031809fc

Author: Jakub Konka

Committer: Jakub Konka

## Message

````
wasm: build static archive unless -dynamic specified

This matches the behaviour for other targets in that

```
zig build-lib math.zig -target wasm32-freestanding
```

produces now `libmath.a` while

```
zig build-lib math.zig -dynamic -target wasm32-freestanding
```

is required to create a loadable Wasm module.

````

## Parents

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

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