| ... | ... | @@ -234,14 +234,16 @@ comptime { |
| 234 | 234 | @export("__aeabi_dcmpun", @import("compiler_rt/comparedf2.zig").__unorddf2, linkage); |
| 235 | 235 | } |
| 236 | 236 | if (builtin.os == .windows) { |
| 237 | | if (!builtin.link_libc) { |
| 237 | // Default stack-probe functions emitted by LLVM |
| 238 | if (is_mingw) { |
| 239 | @export("_alloca", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); |
| 240 | @export("___chkstk_ms", @import("compiler_rt/stack_probe.zig").___chkstk_ms, strong_linkage); |
| 241 | } else { |
| 238 | 242 | @export("_chkstk", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); |
| 239 | 243 | @export("__chkstk", @import("compiler_rt/stack_probe.zig").__chkstk, strong_linkage); |
| 240 | | @export("___chkstk", @import("compiler_rt/stack_probe.zig").___chkstk, strong_linkage); |
| 241 | | @export("__chkstk_ms", @import("compiler_rt/stack_probe.zig").__chkstk_ms, strong_linkage); |
| 242 | | @export("___chkstk_ms", @import("compiler_rt/stack_probe.zig").___chkstk_ms, strong_linkage); |
| 243 | | } else if (is_mingw) { |
| 244 | | @export("___chkstk_ms", @import("compiler_rt/stack_probe.zig").___chkstk_ms, strong_linkage); |
| 244 | } |
| 245 | |
| 246 | if (is_mingw) { |
| 245 | 247 | @export("__stack_chk_fail", __stack_chk_fail, strong_linkage); |
| 246 | 248 | @export("__stack_chk_guard", __stack_chk_guard, strong_linkage); |
| 247 | 249 | } |