authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-15 02:00:25+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-15 02:00:25+02:00
logff21acc4ed0991e4038864f80b695ee8a4d3e7e9
tree8167c53db6d1ac4a27cec709df7990b1c850cbfb
parent8578b07faaa61f772e928961e3546156c14677dd
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

libunwind: disable all warnings


1 files changed, 1 insertions(+), 7 deletions(-)

src/libs/libunwind.zig+1-7
......@@ -104,6 +104,7 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
104104 .assembly_with_cpp => {},
105105 else => unreachable, // See `unwind_src_list`.
106106 }
107 try cflags.append("-w"); // Disable all warnings.
107108 try cflags.append("-I");
108109 try cflags.append(try comp.dirs.zig_lib.join(arena, &.{ "libunwind", "include" }));
109110 try cflags.append("-D_LIBUNWIND_HIDE_SYMBOLS");
......@@ -126,13 +127,6 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
126127 if (target.cpu.arch.isArm() and target.abi.float() == .hard) {
127128 try cflags.append("-DCOMPILER_RT_ARMHF_TARGET");
128129 }
129 try cflags.append("-Wno-bitwise-conditional-parentheses");
130 try cflags.append("-Wno-visibility");
131 try cflags.append("-Wno-incompatible-pointer-types");
132
133 if (target.os.tag == .windows) {
134 try cflags.append("-Wno-dll-attribute-on-redeclaration");
135 }
136130
137131 c_source_files[i] = .{
138132 .src_path = try comp.dirs.zig_lib.join(arena, &.{unwind_src}),