mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
compiler_rt: fix duplicate symbol error when linking libc on arm64 Windows
This commit is contained in:
parent
57dbeb90af
commit
480c3c4d0a
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user