| ... | @@ -283,13 +283,7 @@ pub fn buildImportLib(comp: *Compilation, lib_name: []const u8) !void { | ... | @@ -283,13 +283,7 @@ pub fn buildImportLib(comp: *Compilation, lib_name: []const u8) !void { |
| 283 | const lib_final_path_z = try comp.global_cache_directory.joinZ(arena, &.{lib_final_path}); | 283 | const lib_final_path_z = try comp.global_cache_directory.joinZ(arena, &.{lib_final_path}); |
| 284 | if (llvm_bindings.WriteImportLibrary( | 284 | if (llvm_bindings.WriteImportLibrary( |
| 285 | def_final_path_z.ptr, | 285 | def_final_path_z.ptr, |
| 286 | @intFromEnum(@as(std.coff.MachineType, switch (target.cpu.arch) { | 286 | @intFromEnum(target.toCoffMachine()), |
| 287 | .arm, .armeb, .thumb, .thumbeb => .ARMNT, | | |
| 288 | .aarch64, .aarch64_be => .ARM64, | | |
| 289 | .x86 => .I386, | | |
| 290 | .x86_64 => .X64, | | |
| 291 | else => unreachable, | | |
| 292 | })), | | |
| 293 | lib_final_path_z.ptr, | 287 | lib_final_path_z.ptr, |
| 294 | true, | 288 | true, |
| 295 | )) { | 289 | )) { |