mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
only export __chkstk for windows
it's a windows only function anyway
This commit is contained in:
parent
e93ece7514
commit
06b64d82bf
@ -101,6 +101,7 @@ export nakedcc fn __aeabi_uidivmod() {
|
||||
export nakedcc fn __chkstk() {
|
||||
@setDebugSafety(this, false);
|
||||
|
||||
if (comptime builtin.os == builtin.Os.windows) {
|
||||
if (comptime builtin.arch == builtin.Arch.x86_64) {
|
||||
asm volatile (
|
||||
\\ push %%rcx
|
||||
@ -126,6 +127,7 @@ export nakedcc fn __chkstk() {
|
||||
);
|
||||
unreachable;
|
||||
}
|
||||
}
|
||||
|
||||
@setGlobalLinkage(__chkstk, builtin.GlobalLinkage.Internal);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user