# zig cc: Add support for \`\-exported_symbols_list\` \(\#30628\) · gitcafe/zig

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

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

Visibility: public

Requested revision: f695ca08e3fc705bbca0e6dbde3164718727be00

Requested commit: f695ca08e3fc705bbca0e6dbde3164718727be00

Commit: f695ca08e3fc705bbca0e6dbde3164718727be00

Tree: 43842566238c87558dfca83e5cc1aa6309b32bf8

Author: Antti Harju

Committer: Andrew Kelley

## Message

```
zig cc: Add support for `-exported_symbols_list` (#30628)

Resolves [unsupported linker arg: `-exported_symbols_list`](https://github.com/ziglang/zig/issues/24662)

This PR has been tested with https://github.com/anttiharju/compare-changes/pull/117 (via commits like https://github.com/anttiharju/nur-packages/commit/75b17b948e3046c198931fefce13661276789ff1) where the `zig cc` ([via this wrapper](https://github.com/anttiharju/compare-changes/blob/791129d4011f71b4b59110c79d07c73ed92c4308/.cargo/zcc/aarch64-apple-darwin.sh)) successfully builds a macOS binary (build would fail with zig 0.15.2):

Co-authored-by: Gunnar Wagenknecht <gunnar@wagenknecht.org>
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30628
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: Antti Harju <anttiharju@noreply.codeberg.org>
Co-committed-by: Antti Harju <anttiharju@noreply.codeberg.org>

```

## Parents

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

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