aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-29 00:24:54 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-29 00:24:54 -0700
commitaf6c3a39340ea5be3435dff95ab7d309945b048e (patch)
tree66a31dfbaf9cb4236688801ef8282334c05cb1cd /src
parent9d0da1612e6abf4a05fd6461231f727238d71759 (diff)
downloadzig-af6c3a39340ea5be3435dff95ab7d309945b048e.tar.gz
zig-af6c3a39340ea5be3435dff95ab7d309945b048e.zip
mingw: better -D arg for processing def.in files
Thanks @LemonBoy
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,
};