# WebAssembly: don't append \`\-\-export\` for functions · gitcafe/zig

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

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

Visibility: public

Requested revision: 4aab8118a771e37566c0c3b1c40c175ce1e98285

Requested commit: 4aab8118a771e37566c0c3b1c40c175ce1e98285

Commit: 4aab8118a771e37566c0c3b1c40c175ce1e98285

Tree: 904bafeb49f697ef01d20390e3586378f078916a

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
WebAssembly: don't append `--export` for functions

No longer automatically append the `--export` flag for each exported
function unconditionally. This was essentially a hack to prevent
binary bloat caused by compiler-rt symbols being always included in
the final binary as they were exported and therefore not garbage-
collected. This is no longer needed as we now support the ability to
set the visibility of exports.
This essentially reverts 6d951aff7e32b1b0252d341e66517a9a9ee98a2d

```

## Parents

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

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