zig/tools
Alex Rønne Petersen 6a8228603c
zig cc: Respect Clang's -static and -dynamic flags.
Before:

    ❯ zig cc main.c -target x86_64-linux-musl && musl-ldd ./a.out
    musl-ldd: ./a.out: Not a valid dynamic program
    ❯ zig cc main.c -target x86_64-linux-musl -static && musl-ldd ./a.out
    musl-ldd: ./a.out: Not a valid dynamic program
    ❯ zig cc main.c -target x86_64-linux-musl -dynamic && musl-ldd ./a.out
    musl-ldd: ./a.out: Not a valid dynamic program

After:

    ❯ zig cc main.c -target x86_64-linux-musl && musl-ldd ./a.out
    musl-ldd: ./a.out: Not a valid dynamic program
    ❯ zig cc main.c -target x86_64-linux-musl -static && musl-ldd ./a.out
    musl-ldd: ./a.out: Not a valid dynamic program
    ❯ zig cc main.c -target x86_64-linux-musl -dynamic && musl-ldd ./a.out
            /lib/ld-musl-x86_64.so.1 (0x72c10019e000)
            libc.so => /lib/ld-musl-x86_64.so.1 (0x72c10019e000)

Closes #11909.
2025-04-14 22:10:08 +02:00
..
crc std.hash.crc: simplify api 2024-04-28 21:12:01 +12:00
spirv spirv: update spec generator 2024-03-18 19:13:46 +01:00
docgen.zig std: restructure child process namespace 2024-05-26 09:31:55 -07:00
doctest.zig zig build fmt 2025-02-22 17:09:20 -08:00
dump-cov.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
fetch_them_macos_headers.zig zig build fmt 2025-02-22 17:09:20 -08:00
gen_macos_headers_c.zig Move fetch-them-macos-headers tools to ziglang/zig. 2024-12-14 23:45:18 +01:00
gen_outline_atomics.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
gen_spirv_spec.zig ComptimeStringMap: return a regular struct and optimize 2024-04-22 15:31:41 -07:00
gen_stubs.zig gen_stubs: Add hexagon-linux-musl support. 2025-04-11 02:28:35 +02:00
generate_c_size_and_align_checks.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
generate_JSONTestSuite.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
generate_linux_syscalls.zig generate_linux_syscalls: Generate syscalls for x32. 2024-11-02 10:42:53 +01:00
incr-check.zig correct some bugs 2025-02-25 11:22:33 -08:00
lldb_pretty_printers.py Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
macos-headers.c Move fetch-them-macos-headers tools to ziglang/zig. 2024-12-14 23:45:18 +01:00
migrate_langref.zig Fix small TODO in tools/migrate_langref.zig (#21825) 2024-10-28 00:03:33 +00:00
process_headers.zig process_headers: Add hexagon-linux-musl support. 2025-04-11 02:28:35 +02:00
stage1_gdb_pretty_printers.py gdb: restructure pretty printers into different files 2022-03-16 18:13:10 +01:00
stage2_gdb_pretty_printers.py InternPool: port most of value tags 2023-06-10 20:47:54 -07:00
std_gdb_pretty_printers.py tools: implement more lldb pretty printers 2023-02-27 05:37:03 -05:00
update-linux-headers.zig std.ArrayList: popOrNull() -> pop() [v2] (#22720) 2025-02-10 04:21:31 +00:00
update_clang_options.zig zig cc: Respect Clang's -static and -dynamic flags. 2025-04-14 22:10:08 +02:00
update_cpu_features.zig std.Target: Update CPU models/features for LLVM 20. 2025-04-04 06:08:09 +02:00
update_crc_catalog.zig std.hash.crc: simplify api 2024-04-28 21:12:01 +12:00
update_glibc.zig Revert "Merge pull request #12060 from Vexu/IterableDir" 2023-11-22 12:35:33 -07:00
update_mingw.zig update_mingw: Add update logic for winpthreads files. 2025-02-24 11:58:18 +01:00
zig_gdb_pretty_printers.py Update GDB pretty printers 2023-03-30 12:15:53 +03:00