libunwind: disable all warnings

This commit is contained in:
Alex Rønne Petersen
2026-04-15 02:00:25 +02:00
parent 8578b07faa
commit ff21acc4ed
+1 -7
View File
@@ -104,6 +104,7 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
.assembly_with_cpp => {},
else => unreachable, // See `unwind_src_list`.
}
try cflags.append("-w"); // Disable all warnings.
try cflags.append("-I");
try cflags.append(try comp.dirs.zig_lib.join(arena, &.{ "libunwind", "include" }));
try cflags.append("-D_LIBUNWIND_HIDE_SYMBOLS");
@@ -126,13 +127,6 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
if (target.cpu.arch.isArm() and target.abi.float() == .hard) {
try cflags.append("-DCOMPILER_RT_ARMHF_TARGET");
}
try cflags.append("-Wno-bitwise-conditional-parentheses");
try cflags.append("-Wno-visibility");
try cflags.append("-Wno-incompatible-pointer-types");
if (target.os.tag == .windows) {
try cflags.append("-Wno-dll-attribute-on-redeclaration");
}
c_source_files[i] = .{
.src_path = try comp.dirs.zig_lib.join(arena, &.{unwind_src}),