test-c-abi: disable LTO on more targets

This commit is contained in:
Andrew Kelley 2023-03-14 21:02:52 -07:00
parent 21b544a90a
commit 5c6adbeb39

View File

@ -1043,7 +1043,7 @@ pub fn addCAbiTests(b: *std.Build, skip_non_native: bool, skip_release: bool) *S
// test-c-abi should test both with LTO on and with LTO off. Only
// some combinations are passing currently:
// https://github.com/ziglang/zig/issues/14908
if (c_abi_target.isWindows() and (c_abi_target.getCpuArch() == .x86 or builtin.target.os.tag == .linux)) {
if (c_abi_target.isWindows()) {
test_step.want_lto = false;
}