authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-27 20:27:30+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-28 19:25:01+00:00
log2ac47fe314f0a88a2e5ac6c0116392504369b466
tree60b9399ede2c3174d8845aff5efdfa96b04ca17a
parent29faeeee9de95a327bbb864dd861f15386c4ccff
signaturelock-open Commit is signed but in an unrecognized format.

tests: disable safe compiler-rt tests on LLVM

Disabling due to multiple LLVM bugs: * https://codeberg.org/ziglang/zig/issues/31701 * https://codeberg.org/ziglang/zig/issues/31702

1 files changed, 13 insertions(+), 0 deletions(-)

test/tests.zig+13
......@@ -2413,6 +2413,19 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
24132413 const would_use_llvm = wouldUseLlvm(test_target.use_llvm, test_target.target, test_target.optimize_mode);
24142414 if (options.skip_llvm and would_use_llvm) continue;
24152415
2416 if (would_use_llvm and (mem.eql(u8, options.name, "compiler-rt") or mem.eql(u8, options.name, "zigc"))) {
2417 switch (test_target.optimize_mode) {
2418 .Debug, .ReleaseSafe => {
2419 // LLVM 21 is affected by multiple bugs in safe builds of compiler-rt:
2420 // * https://codeberg.org/ziglang/zig/issues/31701
2421 // * https://codeberg.org/ziglang/zig/issues/31702
2422 // ...so for now, skip these tests.
2423 continue;
2424 },
2425 .ReleaseSmall, .ReleaseFast => {},
2426 }
2427 }
2428
24162429 const triple_txt = resolved_target.query.zigTriple(b.allocator) catch @panic("OOM");
24172430
24182431 if (options.test_target_filters.len > 0) {