| ... | @@ -238,7 +238,8 @@ comptime { | ... | @@ -238,7 +238,8 @@ comptime { |
| 238 | if (is_mingw) { | 238 | if (is_mingw) { |
| 239 | @export("_alloca", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); | 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); | 240 | @export("___chkstk_ms", @import("compiler_rt/stack_probe.zig").___chkstk_ms, strong_linkage); |
| 241 | } else { | 241 | } else if (!builtin.link_libc) { |
| | 242 | // This symbols are otherwise exported by MSVCRT.lib |
| 242 | @export("_chkstk", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); | 243 | @export("_chkstk", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); |
| 243 | @export("__chkstk", @import("compiler_rt/stack_probe.zig").__chkstk, strong_linkage); | 244 | @export("__chkstk", @import("compiler_rt/stack_probe.zig").__chkstk, strong_linkage); |
| 244 | } | 245 | } |