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 {...@@ -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.lib26 // 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 }
3131
32 switch (arch) {32 switch (arch) {