From d2f92e1797cf30c2fb0993d7e09de73e496144f5 Mon Sep 17 00:00:00 2001 From: Alex Rønne Petersen Date: Sat, 3 May 2025 06:32:15 +0200 Subject: compiler: Link libunwind when linking glibc statically. glibc's libc.a depends on the functions provided by libunwind. --- src/main.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index cac0c78163..7eb5436ee5 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4206,6 +4206,7 @@ fn createModule( error.LldCannotIncrementallyLink => fatal("self-hosted backends do not support linking with LLD", .{}), error.LtoRequiresLld => fatal("LTO requires using LLD", .{}), error.SanitizeThreadRequiresLibCpp => fatal("thread sanitization is (for now) implemented in C++, so it requires linking libc++", .{}), + error.LibCRequiresLibUnwind => fatal("libc of the specified target requires linking libunwind", .{}), error.LibCppRequiresLibUnwind => fatal("libc++ requires linking libunwind", .{}), error.OsRequiresLibC => fatal("the target OS requires using libc as the stable syscall interface", .{}), error.LibCppRequiresLibC => fatal("libc++ requires linking libc", .{}), -- cgit v1.2.3