aboutsummaryrefslogtreecommitdiff
path: root/src/mutable_value.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-04-14 21:01:25 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-04-14 22:10:08 +0200
commit6a8228603c924f8e091c52b98f8043e02843c358 (patch)
treec5147dcbdd0e3c4103075924ba6ea70daac3c665 /src/mutable_value.zig
parent715984340b247a27469a3e789843aed3220dd748 (diff)
downloadzig-6a8228603c924f8e091c52b98f8043e02843c358.tar.gz
zig-6a8228603c924f8e091c52b98f8043e02843c358.zip
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.
Diffstat (limited to 'src/mutable_value.zig')
0 files changed, 0 insertions, 0 deletions