| ... | @@ -135,8 +135,6 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre | ... | @@ -135,8 +135,6 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre |
| 135 | try addCcArgs(comp, arena, &winpthreads_args); | 135 | try addCcArgs(comp, arena, &winpthreads_args); |
| 136 | try winpthreads_args.appendSlice(&[_][]const u8{ | 136 | try winpthreads_args.appendSlice(&[_][]const u8{ |
| 137 | "-DIN_WINPTHREAD", | 137 | "-DIN_WINPTHREAD", |
| 138 | // winpthreads incorrectly assumes that Clang has `-Wprio-ctor-dtor`. | | |
| 139 | "-Wno-unknown-warning-option", | | |
| 140 | }); | 138 | }); |
| 141 | | 139 | |
| 142 | switch (comp.compilerRtOptMode()) { | 140 | switch (comp.compilerRtOptMode()) { |
| ... | @@ -170,6 +168,7 @@ fn addCcArgs( | ... | @@ -170,6 +168,7 @@ fn addCcArgs( |
| 170 | args: *std.array_list.Managed([]const u8), | 168 | args: *std.array_list.Managed([]const u8), |
| 171 | ) error{OutOfMemory}!void { | 169 | ) error{OutOfMemory}!void { |
| 172 | try args.appendSlice(&[_][]const u8{ | 170 | try args.appendSlice(&[_][]const u8{ |
| | 171 | "-w", // Disable all warnings. |
| 173 | "-std=gnu11", | 172 | "-std=gnu11", |
| 174 | "-D__USE_MINGW_ANSI_STDIO=0", | 173 | "-D__USE_MINGW_ANSI_STDIO=0", |
| 175 | | 174 | |