From fb99808008f2ad67122b26c0ad31ca6a0c2456cc Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 16 Nov 2021 12:44:44 -0700 Subject: [PATCH] tests: disable LTO for windows until issues can be resolved See #8531 --- test/standalone/c_compiler/build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/standalone/c_compiler/build.zig b/test/standalone/c_compiler/build.zig index aa7217976e..ad500c3eb3 100644 --- a/test/standalone/c_compiler/build.zig +++ b/test/standalone/c_compiler/build.zig @@ -32,6 +32,10 @@ pub fn build(b: *Builder) void { exe_cpp.linkSystemLibrary("c++"); switch (target.getOsTag()) { + .windows => { + // https://github.com/ziglang/zig/issues/8531 + exe_cpp.want_lto = false; + }, .macos => { // https://github.com/ziglang/zig/issues/8680 exe_cpp.want_lto = false;