| ... | @@ -104,6 +104,7 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr | ... | @@ -104,6 +104,7 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr |
| 104 | .assembly_with_cpp => {}, | 104 | .assembly_with_cpp => {}, |
| 105 | else => unreachable, // See `unwind_src_list`. | 105 | else => unreachable, // See `unwind_src_list`. |
| 106 | } | 106 | } |
| | 107 | try cflags.append("-w"); // Disable all warnings. |
| 107 | try cflags.append("-I"); | 108 | try cflags.append("-I"); |
| 108 | try cflags.append(try comp.dirs.zig_lib.join(arena, &.{ "libunwind", "include" })); | 109 | try cflags.append(try comp.dirs.zig_lib.join(arena, &.{ "libunwind", "include" })); |
| 109 | try cflags.append("-D_LIBUNWIND_HIDE_SYMBOLS"); | 110 | try cflags.append("-D_LIBUNWIND_HIDE_SYMBOLS"); |
| ... | @@ -126,13 +127,6 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr | ... | @@ -126,13 +127,6 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr |
| 126 | if (target.cpu.arch.isArm() and target.abi.float() == .hard) { | 127 | if (target.cpu.arch.isArm() and target.abi.float() == .hard) { |
| 127 | try cflags.append("-DCOMPILER_RT_ARMHF_TARGET"); | 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 | c_source_files[i] = .{ | 131 | c_source_files[i] = .{ |
| 138 | .src_path = try comp.dirs.zig_lib.join(arena, &.{unwind_src}), | 132 | .src_path = try comp.dirs.zig_lib.join(arena, &.{unwind_src}), |