# wasm-ld: implement \`\-\-export-memory\` flag · gitcafe/zig

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

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

Visibility: public

Requested revision: 381937116326400c1162a710c16496152b542443

Requested commit: 381937116326400c1162a710c16496152b542443

Commit: 381937116326400c1162a710c16496152b542443

Tree: 21e841fedeae8a5a1dac655cec5a2cab724e7175

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-ld: implement `--export-memory` flag

This flag allows the user to force export the memory to the host
environment. This is useful when the memory is imported from the
host but must also be exported. This is (currently) required
to pass the memory validation for runtimes when using threads.
In this future this may become an error instead.

```

## Parents

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

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