diff options
| author | kcbanner <kcbanner@gmail.com> | 2023-01-19 13:01:27 -0500 |
|---|---|---|
| committer | kcbanner <kcbanner@gmail.com> | 2023-01-19 13:06:21 -0500 |
| commit | c1bdf01533462aabb78321b554580fd378cdc59c (patch) | |
| tree | ab6d7542e2546f983080d43c08798c44ca5ec1da | |
| parent | 2b7678bc421e2efbdbce60d0f25ac68ffa20e100 (diff) | |
| download | zig-c1bdf01533462aabb78321b554580fd378cdc59c.tar.gz zig-c1bdf01533462aabb78321b554580fd378cdc59c.zip | |
tests: disable c_abi tests for windows when compiling on linux
| -rw-r--r-- | test/tests.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig index ec538a0c67..8e972b9ba6 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; } |
