| ... | ... | @@ -1353,8 +1353,9 @@ pub fn addCAbiTests(b: *build.Builder, skip_non_native: bool, skip_release: bool |
| 1353 | 1353 | test_step.addCSourceFile("test/c_abi/cfuncs.c", &.{"-std=c99"}); |
| 1354 | 1354 | test_step.setBuildMode(mode); |
| 1355 | 1355 | |
| 1356 | | if (c_abi_target.isWindows() and c_abi_target.getCpuArch() == .x86) { |
| 1356 | if (c_abi_target.isWindows() and (c_abi_target.getCpuArch() == .x86 or builtin.target.os.tag == .linux)) { |
| 1357 | 1357 | // LTO currently incorrectly strips stdcall name-mangled functions |
| 1358 | // LLD crashes in LTO here when cross compiling for windows on linux |
| 1358 | 1359 | test_step.want_lto = false; |
| 1359 | 1360 | } |
| 1360 | 1361 | |