mirror of
https://github.com/ziglang/zig.git
synced 2026-02-17 14:59:14 +00:00
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:
parent
9bc2185997
commit
a9d1c6acb2
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user