From 21064d9144433d0ceaa7c1d902ecbb2471f0546c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 20 Jul 2022 12:50:58 -0700 Subject: [PATCH] disable std lib test failing with self-hosted ReleaseSafe I opened a corresponding issue #12178 which has the 0.10.0 milestone, so this must be fixed before we release. --- lib/std/hash/auto_hash.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/std/hash/auto_hash.zig b/lib/std/hash/auto_hash.zig index 9a5d6fd836..c4060e9182 100644 --- a/lib/std/hash/auto_hash.zig +++ b/lib/std/hash/auto_hash.zig @@ -375,6 +375,12 @@ test "testHash struct" { } test "testHash union" { + const builtin = @import("builtin"); + if (builtin.zig_backend == .stage2_llvm and builtin.mode == .ReleaseSafe) { + // https://github.com/ziglang/zig/issues/12178 + return error.SkipZigTest; + } + const Foo = union(enum) { A: u32, B: bool,