mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
libunwind: disable all warnings
This commit is contained in:
@@ -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}),
|
||||
|
||||
Reference in New Issue
Block a user