libunwind: Use -Wno-dll-attribute-on-redeclaration for Windows like upstream.

This silences a bunch of noisy warnings when building libunwind.
This commit is contained in:
Alex Rønne Petersen 2024-09-21 01:20:36 +02:00
parent 9bc2185997
commit a9d1c6acb2
No known key found for this signature in database

View File

@ -143,6 +143,10 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
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.zig_lib_directory.join(arena, &[_][]const u8{unwind_src}),
.extra_flags = cflags.items,