| ... | @@ -143,6 +143,10 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr | ... | @@ -143,6 +143,10 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr |
| 143 | try cflags.append("-Wno-visibility"); | 143 | try cflags.append("-Wno-visibility"); |
| 144 | try cflags.append("-Wno-incompatible-pointer-types"); | 144 | try cflags.append("-Wno-incompatible-pointer-types"); |
| 145 | | 145 | |
| | 146 | if (target.os.tag == .windows) { |
| | 147 | try cflags.append("-Wno-dll-attribute-on-redeclaration"); |
| | 148 | } |
| | 149 | |
| 146 | c_source_files[i] = .{ | 150 | c_source_files[i] = .{ |
| 147 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{unwind_src}), | 151 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{unwind_src}), |
| 148 | .extra_flags = cflags.items, | 152 | .extra_flags = cflags.items, |