mirror of
https://github.com/ziglang/zig.git
synced 2025-12-17 03:33:06 +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() {
|
export nakedcc fn __chkstk() {
|
||||||
@setDebugSafety(this, false);
|
@setDebugSafety(this, false);
|
||||||
|
|
||||||
|
if (comptime builtin.os == builtin.Os.windows) {
|
||||||
if (comptime builtin.arch == builtin.Arch.x86_64) {
|
if (comptime builtin.arch == builtin.Arch.x86_64) {
|
||||||
asm volatile (
|
asm volatile (
|
||||||
\\ push %%rcx
|
\\ push %%rcx
|
||||||
@ -126,6 +127,7 @@ export nakedcc fn __chkstk() {
|
|||||||
);
|
);
|
||||||
unreachable;
|
unreachable;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@setGlobalLinkage(__chkstk, builtin.GlobalLinkage.Internal);
|
@setGlobalLinkage(__chkstk, builtin.GlobalLinkage.Internal);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user