aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/zig0.cpp
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-06-27 19:48:10 +0200
committerJakub Konka <kubkon@jakubkonka.com>2022-06-27 19:53:38 +0200
commit0dd28920daa5127ffe5a3691343fa519f7547cfd (patch)
tree949f6078a42f12415508667377b40ea0e84eac0b /src/stage1/zig0.cpp
parentefc5c97bff87d4c28ae9642fe69d9bc2c7e9eeb7 (diff)
downloadzig-0dd28920daa5127ffe5a3691343fa519f7547cfd.tar.gz
zig-0dd28920daa5127ffe5a3691343fa519f7547cfd.zip
macho: implement and handle `-needed-*` and `-needed_*` family of flags
MachO linker now handles `-needed-l<name>`, `-needed_library=<name>` and `-needed_framework=<name>`. While on macOS `-l` is equivalent to `-needed-l`, and `-framework` to `-needed_framework`, it can be used to the same effect as on Linux if combined with `-dead_strip_dylibs`. This commit also adds handling for `-needed_library` which is macOS specific flag only (in addition to `-needed-l`). Finally, in order to leverage new linker testing harness, this commit added ability to specify lowering to those flags via `build.zig`: `linkSystemLibraryNeeded` (and related), and `linkFrameworkNeeded`.
Diffstat (limited to 'src/stage1/zig0.cpp')
0 files changed, 0 insertions, 0 deletions