# build.zig: default to Debug for wasm32 too · gitcafe/zig

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

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

Visibility: public

Requested revision: e17c872ddaf527707fa91e16276ffc89d7a3be90

Requested commit: e17c872ddaf527707fa91e16276ffc89d7a3be90

Commit: e17c872ddaf527707fa91e16276ffc89d7a3be90

Tree: 0ef26ba36559c8659525c02ee8175841632904ba

Author: Motiejus Jakštys

Committer: Motiejus Jakštys

## Message

```
build.zig: default to Debug for wasm32 too

Following @Luukdegram's comment[1]:

> The default should remain Debug when unspecified. In ReleaseSmall the
> user would lose all DWARF support when testing their WebAssembly code.
> Building a release version should be opt-in, not the default.

[1]: https://github.com/ziglang/zig/pull/15192#discussion_r1160824726

```

## Parents

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

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