| ... | @@ -18,15 +18,15 @@ comptime { | ... | @@ -18,15 +18,15 @@ comptime { |
| 18 | if (is_mingw) { | 18 | if (is_mingw) { |
| 19 | @export(_chkstk, .{ .name = "_alloca", .linkage = strong_linkage }); | 19 | @export(_chkstk, .{ .name = "_alloca", .linkage = strong_linkage }); |
| 20 | @export(___chkstk_ms, .{ .name = "___chkstk_ms", .linkage = strong_linkage }); | 20 | @export(___chkstk_ms, .{ .name = "___chkstk_ms", .linkage = strong_linkage }); |
| | 21 | |
| | 22 | if (arch.isAARCH64()) { |
| | 23 | @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage }); |
| | 24 | } |
| 21 | } else if (!builtin.link_libc) { | 25 | } else if (!builtin.link_libc) { |
| 22 | // This symbols are otherwise exported by MSVCRT.lib | 26 | // This symbols are otherwise exported by MSVCRT.lib |
| 23 | @export(_chkstk, .{ .name = "_chkstk", .linkage = strong_linkage }); | 27 | @export(_chkstk, .{ .name = "_chkstk", .linkage = strong_linkage }); |
| 24 | @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage }); | 28 | @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage }); |
| 25 | } | 29 | } |
| 26 | | | |
| 27 | if (arch.isAARCH64()) { | | |
| 28 | @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage }); | | |
| 29 | } | | |
| 30 | } | 30 | } |
| 31 | | 31 | |
| 32 | switch (arch) { | 32 | switch (arch) { |