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>
f695ca08e3Antti Harju committed on 1/14/2026, 6:16:05 PM· committed by Andrew Kelleyparentb99dc12