0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Andrew Kelley fa940bafa2 std.zig.system.NativeTargetInfo: improve glibc version detection
Previously, this code would fail to detect glibc version because it
relied on libc.so.6 being a symlink which revealed the answer. On modern
distros, this is no longer the case.

This new strategy finds the path to libc.so.6 from /usr/bin/env, then
inspects the .dynstr section of libc.so.6, looking for symbols that
start with "GLIBC_2.". It then parses those as semantic versions and
takes the maximum value as the system-native glibc version.

closes #6469
   see #11137
closes #12567
History 2022-09-08 20:52:49 -07:00
..
compiler_rt Merge pull request #12574 from Vexu/remove-bit-op-type-param 2022-08-24 15:57:44 -04:00
docs autodoc: improve rendering of long fn signatures 2022-09-05 17:26:59 +02:00
include move zig.h to become an installation file 2022-07-27 10:26:45 -07:00
init-exe init-exe template: add flushing to the buffered writer 2022-08-04 21:12:42 +02:00
init-lib flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
libc glibc/abilists: add libresolv stubs 2022-08-25 16:36:10 +03:00
libcxx libcxx: do not include __config_site 2022-07-02 20:40:59 -07:00
libcxxabi update libcxxabi to llvm 14.0.6 2022-07-01 16:39:29 -07:00
libunwind update libunwind to llvm 14.0.6 2022-07-01 16:39:31 -07:00
std std.zig.system.NativeTargetInfo: improve glibc version detection 2022-09-08 20:52:49 -07:00
tsan update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 2021-08-16 23:32:13 -07:00
build_runner.zig flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
c.zig Sema: validate deref operator type and value 2022-07-01 10:22:25 +03:00
compiler_rt.zig stage2: lower float negation explicitly 2022-06-30 00:02:00 -07:00
ssp.zig flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
test_runner.zig Revert "test_runner: workaround #1923, isolating error traces in tests" 2022-08-22 11:46:54 -07:00