diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-05-03 06:32:15 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-05-03 10:54:36 +0200 |
| commit | d2f92e1797cf30c2fb0993d7e09de73e496144f5 (patch) | |
| tree | 5ff3a50055955dc6fd586defaec9e180f22f6506 /src/main.zig | |
| parent | f6476e9caeadea0c0c6b18841dffcf72bffdd582 (diff) | |
| download | zig-d2f92e1797cf30c2fb0993d7e09de73e496144f5.tar.gz zig-d2f92e1797cf30c2fb0993d7e09de73e496144f5.zip | |
compiler: Link libunwind when linking glibc statically.
glibc's libc.a depends on the functions provided by libunwind.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 1 |
1 files changed, 1 insertions, 0 deletions
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", .{}), |
