zig/lib/std/Build
Alex Rønne Petersen f87b443af1 link.MachO: Add support for the -x flag (discard local symbols).
This can also be extended to ELF later as it means roughly the same thing there.

This addresses the main issue in #21721 but as I don't have a macOS machine to
do further testing on, I can't confirm whether zig cc is able to pass the entire
cgo test suite after this commit. It can, however, cross-compile a basic program
that uses cgo to x86_64-macos-none which previously failed due to lack of -x
support. Unlike previously, the resulting symbol table does not contain local
symbols (such as C static functions).

I believe this satisfies the related donor bounty: https://ziglang.org/news/second-donor-bounty
2025-02-22 06:35:19 +01:00
..
Cache std.Build.Cache.Path: fix single-quote escaping format 2024-10-10 14:21:52 -07:00
Fuzz adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
Step link.MachO: Add support for the -x flag (discard local symbols). 2025-02-22 06:35:19 +01:00
Cache.zig std.ArrayHashMap: popOrNul() -> pop() 2025-02-07 17:52:19 -08:00
Fuzz.zig Make -freference-trace work without colors 2025-01-30 13:02:06 +01:00
Module.zig std.Build: Add option to specify language of CSourceFiles 2025-01-30 14:04:47 +01:00
Step.zig std.Build.Cache.hit: work around macOS kernel bug 2024-12-11 11:56:44 -08:00
Watch.zig std.Build.Watch: implement removing watches for kqueue 2024-10-24 23:31:56 -07:00