authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-09-21 01:20:36+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-09-21 01:20:36+02:00
loga9d1c6acb2b3b1c85672461ecf0bb7d871767e44
tree5fb72a8a1b3ca8ceae29c5f64e74ab4020304f09
parent9bc218599719de49d43baf2a66b852eefe2e442e
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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

This silences a bunch of noisy warnings when building libunwind.

1 files changed, 4 insertions(+), 0 deletions(-)

src/libunwind.zig+4
......@@ -143,6 +143,10 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
143143 try cflags.append("-Wno-visibility");
144144 try cflags.append("-Wno-incompatible-pointer-types");
145145
146 if (target.os.tag == .windows) {
147 try cflags.append("-Wno-dll-attribute-on-redeclaration");
148 }
149
146150 c_source_files[i] = .{
147151 .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{unwind_src}),
148152 .extra_flags = cflags.items,