aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mingw.zig7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mingw.zig b/src/mingw.zig
index 41a328c6f4..b6c8591ea4 100644
--- a/src/mingw.zig
+++ b/src/mingw.zig
@@ -342,11 +342,8 @@ pub fn buildImportLib(comp: *Compilation, lib_name: []const u8) !void {
const target_def_arg = switch (target.cpu.arch) {
.i386 => "-DDEF_I386",
.x86_64 => "-DDEF_X64",
- .arm, .armeb => switch (target.cpu.arch.ptrBitWidth()) {
- 32 => "-DDEF_ARM32",
- 64 => "-DDEF_ARM64",
- else => unreachable,
- },
+ .arm, .armeb, .thumb, .thumbeb, .aarch64_32 => "-DDEF_ARM32",
+ .aarch64, .aarch64_be => "-DDEF_ARM64",
else => unreachable,
};