diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-09-21 01:20:36 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-09-21 01:20:36 +0200 |
| commit | a9d1c6acb2b3b1c85672461ecf0bb7d871767e44 (patch) | |
| tree | 5fb72a8a1b3ca8ceae29c5f64e74ab4020304f09 /src | |
| parent | 9bc218599719de49d43baf2a66b852eefe2e442e (diff) | |
| download | zig-a9d1c6acb2b3b1c85672461ecf0bb7d871767e44.tar.gz zig-a9d1c6acb2b3b1c85672461ecf0bb7d871767e44.zip | |
libunwind: Use `-Wno-dll-attribute-on-redeclaration` for Windows like upstream.
This silences a bunch of noisy warnings when building libunwind.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libunwind.zig | 4 |
1 files changed, 4 insertions, 0 deletions
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, |
