authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-03 14:41:28+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-03 14:41:28+01:00
log480c3c4d0a61d13fea9b90f575a836d2ec1c1c29
tree9abf92dc01e1b928a236f5963faaa18556460527
parent57dbeb90affb81501d18210db0075620e40dfefb

compiler_rt: fix duplicate symbol error when linking libc on arm64 Windows


1 files changed, 4 insertions(+), 4 deletions(-)

lib/compiler_rt/stack_probe.zig+4-4
......@@ -18,15 +18,15 @@ comptime {
1818 if (is_mingw) {
1919 @export(_chkstk, .{ .name = "_alloca", .linkage = strong_linkage });
2020 @export(___chkstk_ms, .{ .name = "___chkstk_ms", .linkage = strong_linkage });
21
22 if (arch.isAARCH64()) {
23 @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage });
24 }
2125 } else if (!builtin.link_libc) {
2226 // This symbols are otherwise exported by MSVCRT.lib
2327 @export(_chkstk, .{ .name = "_chkstk", .linkage = strong_linkage });
2428 @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage });
2529 }
26
27 if (arch.isAARCH64()) {
28 @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage });
29 }
3030 }
3131
3232 switch (arch) {