mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
tests: disable c_abi tests for windows when compiling on linux
This commit is contained in:
parent
2b7678bc42
commit
c1bdf01533
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user