0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Alex Rønne Petersen 8818dc6213
std.zig.system: Fix detectAbiAndDynamicLinker() for non-Linux/Hurd ELF hosts.
Since we exclude Abi.none from the list of ABIs to be tested, it means that
Abi.gnu, which happens to be the first in the list, always gets picked for hosts
where the dynamic linker path does not depend on the ABI component of the
triple. Such hosts include all the BSDs, Haiku, Serenity, Solaris, etc.

To fix this, use DynamicLinker.kind() to determine whether this whole exercise
even makes sense. If it doesn't, as is the case on every OS other than Linux and
Hurd, we'll just fall back to Abi.default() which will try to pick a sensible
default based on the arch and OS components. This detection logic still has
plenty of room for improvement, but is at least a notable step up from
confusingly detecting Abi.gnu ~everywhere.

Closes #9089.
History 2024-10-26 22:00:49 +02:00
..
compiler implement --watch for kqueue 2024-10-24 16:24:56 -07:00
compiler_rt compiler_rt: remove bogus tests 2024-10-19 19:44:53 +01:00
docs Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
fuzzer/web Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
include clang: Update compiler-provided C headers to Clang 19.1.0. 2024-09-19 18:20:21 -07:00
init fix init template for new fuzz testing API 2024-09-11 13:41:29 -07:00
libc musl: Align _init/_fini symbols correctly on arm. 2024-10-11 03:20:39 +02:00
libcxx libcxx: Update to LLVM 19.1.0. 2024-09-19 18:20:22 -07:00
libcxxabi libcxxabi: Update to LLVM 19. 2024-09-19 18:20:21 -07:00
libunwind libunwind: Update gcc_personality_v0.c to LLVM 19.1.0. 2024-09-21 01:16:47 +02:00
std std.zig.system: Fix detectAbiAndDynamicLinker() for non-Linux/Hurd ELF hosts. 2024-10-26 22:00:49 +02:00
tsan tsan: Update to LLVM 19.1.0. 2024-09-24 23:58:21 -07:00
c.zig handle _fltused in compiler_rt 2024-10-23 16:27:39 -07:00
compiler_rt.zig handle _fltused in compiler_rt 2024-10-23 16:27:39 -07:00
fuzzer.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
zig.h remove @fence (#21585) 2024-10-04 22:21:27 +00:00