| ... | @@ -187,27 +187,25 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void { | ... | @@ -187,27 +187,25 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void { |
| 187 | }; | 187 | }; |
| 188 | } | 188 | } |
| 189 | } else if (target.cpu.arch.isARM()) { | 189 | } else if (target.cpu.arch.isARM()) { |
| 190 | if (target.cpu.arch.ptrBitWidth() == 32) { | 190 | for (mingwex_arm32_src) |dep| { |
| 191 | for (mingwex_arm32_src) |dep| { | 191 | (try c_source_files.addOne()).* = .{ |
| 192 | (try c_source_files.addOne()).* = .{ | 192 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ |
| 193 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ | 193 | "libc", "mingw", dep, |
| 194 | "libc", "mingw", dep, | 194 | }), |
| 195 | }), | 195 | .extra_flags = extra_flags, |
| 196 | .extra_flags = extra_flags, | 196 | }; |
| 197 | }; | 197 | } |
| 198 | } | 198 | } else if (target.cpu.arch.isAARCH64()) { |
| 199 | } else { | 199 | for (mingwex_arm64_src) |dep| { |
| 200 | for (mingwex_arm64_src) |dep| { | 200 | (try c_source_files.addOne()).* = .{ |
| 201 | (try c_source_files.addOne()).* = .{ | 201 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ |
| 202 | .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ | 202 | "libc", "mingw", dep, |
| 203 | "libc", "mingw", dep, | 203 | }), |
| 204 | }), | 204 | .extra_flags = extra_flags, |
| 205 | .extra_flags = extra_flags, | 205 | }; |
| 206 | }; | | |
| 207 | } | | |
| 208 | } | 206 | } |
| 209 | } else { | 207 | } else { |
| 210 | unreachable; | 208 | @panic("unsupported arch"); |
| 211 | } | 209 | } |
| 212 | return comp.build_crt_file("mingwex", .Lib, c_source_files.items); | 210 | return comp.build_crt_file("mingwex", .Lib, c_source_files.items); |
| 213 | }, | 211 | }, |