commit 0848d33d782d47bfa564b23e25c141738b9e22e3 (tree)
parent d8970de510d2452f73251f6a2b663968dcd4ad37
Author: Andrew Kelley <andrew@ziglang.org>
Date: Thu, 3 Nov 2022 19:49:10 -0400
Merge pull request #13430 from ziglang/stack-probe-msvc
Miscellaneous arm64 windows fixes
Diffstat:
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/compiler_rt/stack_probe.zig b/lib/compiler_rt/stack_probe.zig
@@ -18,15 +18,15 @@ comptime {
if (is_mingw) {
@export(_chkstk, .{ .name = "_alloca", .linkage = strong_linkage });
@export(___chkstk_ms, .{ .name = "___chkstk_ms", .linkage = strong_linkage });
+
+ if (arch.isAARCH64()) {
+ @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage });
+ }
} else if (!builtin.link_libc) {
// This symbols are otherwise exported by MSVCRT.lib
@export(_chkstk, .{ .name = "_chkstk", .linkage = strong_linkage });
@export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage });
}
-
- if (arch.isAARCH64()) {
- @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage });
- }
}
switch (arch) {
diff --git a/src/libc_installation.zig b/src/libc_installation.zig
@@ -411,6 +411,7 @@ pub const LibCInstallation = struct {
.i386 => "x86",
.x86_64 => "x64",
.arm, .armeb => "arm",
+ .aarch64 => "arm64",
else => return error.UnsupportedArchitecture,
};
@@ -474,6 +475,7 @@ pub const LibCInstallation = struct {
.i386 => "x86",
.x86_64 => "x64",
.arm, .armeb => "arm",
+ .aarch64 => "arm64",
else => return error.UnsupportedArchitecture,
};