| ... | ... | @@ -104,6 +104,7 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr |
| 104 | 104 | .assembly_with_cpp => {}, |
| 105 | 105 | else => unreachable, // See `unwind_src_list`. |
| 106 | 106 | } |
| 107 | try cflags.append("-w"); // Disable all warnings. |
| 107 | 108 | try cflags.append("-I"); |
| 108 | 109 | try cflags.append(try comp.dirs.zig_lib.join(arena, &.{ "libunwind", "include" })); |
| 109 | 110 | try cflags.append("-D_LIBUNWIND_HIDE_SYMBOLS"); |
| ... | ... | @@ -126,13 +127,6 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr |
| 126 | 127 | if (target.cpu.arch.isArm() and target.abi.float() == .hard) { |
| 127 | 128 | try cflags.append("-DCOMPILER_RT_ARMHF_TARGET"); |
| 128 | 129 | } |
| 129 | | try cflags.append("-Wno-bitwise-conditional-parentheses"); |
| 130 | | try cflags.append("-Wno-visibility"); |
| 131 | | try cflags.append("-Wno-incompatible-pointer-types"); |
| 132 | | |
| 133 | | if (target.os.tag == .windows) { |
| 134 | | try cflags.append("-Wno-dll-attribute-on-redeclaration"); |
| 135 | | } |
| 136 | 130 | |
| 137 | 131 | c_source_files[i] = .{ |
| 138 | 132 | .src_path = try comp.dirs.zig_lib.join(arena, &.{unwind_src}), |