diff --git a/lib/std/special/compiler_rt.zig b/lib/std/special/compiler_rt.zig index 88e3078d6a5213548ac82a1ff6117f6cd23e2d5b..0a09f616e945b18686fb2f31b53ab733f2ba3827 100644 --- a/lib/std/special/compiler_rt.zig +++ b/lib/std/special/compiler_rt.zig @@ -238,7 +238,8 @@ comptime { if (is_mingw) { @export("_alloca", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); @export("___chkstk_ms", @import("compiler_rt/stack_probe.zig").___chkstk_ms, strong_linkage); - } else { + } else if (!builtin.link_libc) { + // This symbols are otherwise exported by MSVCRT.lib @export("_chkstk", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); @export("__chkstk", @import("compiler_rt/stack_probe.zig").__chkstk, strong_linkage); }