From 684d2aa1dc7e3ba76d6aca43ecd1d5d45f91df36 Mon Sep 17 00:00:00 2001 From: 0xjojoex <0xjojoex@gmail.com> Date: Wed, 15 Jul 2026 13:11:04 +0800 Subject: [PATCH] Use LLVM for evmz-backed EEST test targets --- eest/build.zig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/eest/build.zig b/eest/build.zig index f7cd18d..7bb7998 100644 --- a/eest/build.zig +++ b/eest/build.zig @@ -64,6 +64,23 @@ pub fn build(b: *std.Build) void { const stateless_block_stf_tests = b.addTest(.{ .root_module = eestModule(b, "src/stateless_block_stf.zig", target, optimize, evmz_mod), }); + // Zig 0.16's self-hosted x86_64 backend cannot lower `.always_tail`. + // Match the root test lane and compile evmz-backed tests with LLVM. + for ([_]*std.Build.Step.Compile{ + state_tests, + state_cli_tests, + tx_tests, + stateless_tests, + stateless_cli_tests, + stateless_input_tests, + stateless_ere_tests, + stateless_ere_bench_tests, + block_stf_tests, + block_stf_cli_tests, + stateless_block_stf_tests, + }) |test_artifact| { + test_artifact.use_llvm = true; + } const ssz_conformance_tests = b.addTest(.{ .root_module = sszConformanceModule(b, "src/ssz_conformance.zig", target, optimize, ssz_mod, snappy_mod), });