From a9d1c6acb2b3b1c85672461ecf0bb7d871767e44 Mon Sep 17 00:00:00 2001 From: Alex Rønne Petersen Date: Sat, 21 Sep 2024 01:20:36 +0200 Subject: libunwind: Use `-Wno-dll-attribute-on-redeclaration` for Windows like upstream. This silences a bunch of noisy warnings when building libunwind. --- src/libunwind.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/libunwind.zig b/src/libunwind.zig index 605206467c..5eb19e8d67 100644 --- a/src/libunwind.zig +++ b/src/libunwind.zig @@ -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, -- cgit v1.2.3