0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Jakub Konka 0dd28920da 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`.
History 2022-06-27 19:53:38 +02:00
..
behavior stage2 ARM: implement basic intCast and error union wrapping 2022-06-25 21:16:51 +02:00
cases test-cases: fix race with zig run on C backend tests 2022-06-14 15:27:43 -07:00
link macho: implement and handle -needed-* and -needed_* family of flags 2022-06-27 19:53:38 +02:00
src std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
stage1/c_abi C ABI: these tests are not passing yet on Windows 2022-02-08 21:15:00 -07:00
stage2 remove a stage2 test case that relies on a very deep compiler stack 2022-06-09 20:00:59 -07:00
standalone test: introduce link(er) tests - builds on standalone tests 2022-06-20 17:59:17 +02:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig stage2: fix type printing of sub-byte pointers 2022-06-08 15:18:43 -07:00
cases.zig test: migrate stage1 compile error tests to updated test manifest 2022-04-28 18:35:01 +02:00
cli.zig Full response file (*.rsp) support 2022-01-30 21:27:52 +02:00
compare_output.zig Full response file (*.rsp) support 2022-01-30 21:27:52 +02:00
compile_errors.zig test: migrate stage1 compile error tests to updated test manifest 2022-04-28 18:35:01 +02:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
link.zig macho: implement and handle -needed-* and -needed_* family of flags 2022-06-27 19:53:38 +02:00
run_translated_c.zig translate-c: use nested scope for comma operator in macros 2022-03-08 20:38:51 +02:00
stack_traces.zig overhaul elf csu (c-runtime startup) logic 2021-05-23 15:38:57 -04:00
standalone.zig test: introduce link(er) tests - builds on standalone tests 2022-06-20 17:59:17 +02:00
tests.zig link-tests: CheckFileStep to do grep test on the binary 2022-06-20 17:59:17 +02:00
translate_c.zig translate-c: check variable types being demoted to opaque 2022-05-29 12:07:29 +03:00