| ... | @@ -234,14 +234,16 @@ comptime { | ... | @@ -234,14 +234,16 @@ comptime { |
| 234 | @export("__aeabi_dcmpun", @import("compiler_rt/comparedf2.zig").__unorddf2, linkage); | 234 | @export("__aeabi_dcmpun", @import("compiler_rt/comparedf2.zig").__unorddf2, linkage); |
| 235 | } | 235 | } |
| 236 | if (builtin.os == .windows) { | 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 | @export("_chkstk", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); | 242 | @export("_chkstk", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); |
| 239 | @export("__chkstk", @import("compiler_rt/stack_probe.zig").__chkstk, strong_linkage); | 243 | @export("__chkstk", @import("compiler_rt/stack_probe.zig").__chkstk, strong_linkage); |
| 240 | @export("___chkstk", @import("compiler_rt/stack_probe.zig").___chkstk, strong_linkage); | 244 | } |
| 241 | @export("__chkstk_ms", @import("compiler_rt/stack_probe.zig").__chkstk_ms, strong_linkage); | 245 | |
| 242 | @export("___chkstk_ms", @import("compiler_rt/stack_probe.zig").___chkstk_ms, strong_linkage); | 246 | if (is_mingw) { |
| 243 | } else if (is_mingw) { | | |
| 244 | @export("___chkstk_ms", @import("compiler_rt/stack_probe.zig").___chkstk_ms, strong_linkage); | | |
| 245 | @export("__stack_chk_fail", __stack_chk_fail, strong_linkage); | 247 | @export("__stack_chk_fail", __stack_chk_fail, strong_linkage); |
| 246 | @export("__stack_chk_guard", __stack_chk_guard, strong_linkage); | 248 | @export("__stack_chk_guard", __stack_chk_guard, strong_linkage); |
| 247 | } | 249 | } |