# default to single-threaded for WebAssembly · gitcafe/zig

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

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

Visibility: public

Requested revision: 87b8a0567b0f54415aeecd879d3f1a4e12014d22

Requested commit: 87b8a0567b0f54415aeecd879d3f1a4e12014d22

Commit: 87b8a0567b0f54415aeecd879d3f1a4e12014d22

Tree: 77cea5728d61fd701009a40e6ac0c70ce282c69a

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
default to single-threaded for WebAssembly

When targeting WebAssembly, we default to building a single-threaded build
as threads are still experimental. The user however can enable a multi-
threaded build by specifying '-fno-single-threaded'. It's a compile-error
to enable this flag, but not also enable shared-memory.

```

## Parents

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

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