diff --git a/test/tests.zig b/test/tests.zig index ec538a0c6787c3cbe64d3ecfd17b9366f2e1a928..8e972b9ba679bfecf503c30908879c6d02e98362 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -1353,8 +1353,9 @@ pub fn addCAbiTests(b: *build.Builder, skip_non_native: bool, skip_release: bool test_step.addCSourceFile("test/c_abi/cfuncs.c", &.{"-std=c99"}); test_step.setBuildMode(mode); - if (c_abi_target.isWindows() and c_abi_target.getCpuArch() == .x86) { + if (c_abi_target.isWindows() and (c_abi_target.getCpuArch() == .x86 or builtin.target.os.tag == .linux)) { // LTO currently incorrectly strips stdcall name-mangled functions + // LLD crashes in LTO here when cross compiling for windows on linux test_step.want_lto = false; }