authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-13 23:41:41-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-15 10:48:15-07:00
log941cae4331ff4922ccef08a5d3d5879a0d1fa786
tree47e67ecc8ea5231850a45505af1081e62c38f6a3
parent22d94eaf32bc303ff757f442991f570b264b24c3

revert a change to C ABI tests

See tracking issue #14908

1 files changed, 7 insertions(+), 3 deletions(-)

test/tests.zig+7-3
...@@ -1045,9 +1045,13 @@ pub fn addCAbiTests(b: *std.Build, skip_non_native: bool, skip_release: bool) *S...@@ -1045,9 +1045,13 @@ pub fn addCAbiTests(b: *std.Build, skip_non_native: bool, skip_release: bool) *S
1045 }1045 }
1046 test_step.linkLibC();1046 test_step.linkLibC();
1047 test_step.addCSourceFile("test/c_abi/cfuncs.c", &.{"-std=c99"});1047 test_step.addCSourceFile("test/c_abi/cfuncs.c", &.{"-std=c99"});
1048 // This test is intentionally trying to check if the external ABI is1048
1049 // done properly. LTO would be a hindrance to this.1049 // test-c-abi should test both with LTO on and with LTO off. Only
1050 test_step.want_lto = false;1050 // some combinations are passing currently:
1051 // https://github.com/ziglang/zig/issues/14908
1052 if (c_abi_target.isWindows() and (c_abi_target.getCpuArch() == .x86 or builtin.target.os.tag == .linux)) {
1053 test_step.want_lto = false;
1054 }
10511055
1052 const triple_prefix = c_abi_target.zigTriple(b.allocator) catch @panic("OOM");1056 const triple_prefix = c_abi_target.zigTriple(b.allocator) catch @panic("OOM");
1053 test_step.setNamePrefix(b.fmt("{s}-{s}-{s} ", .{1057 test_step.setNamePrefix(b.fmt("{s}-{s}-{s} ", .{