From c51f79d1c54a81e0ee7a4521a4868491f98f5576 Mon Sep 17 00:00:00 2001 From: Dmitrii Vasilev Date: Wed, 12 Aug 2026 03:09:39 +0700 Subject: [PATCH] Fix unresolvable jit_arm64 import and export vsa_jit The path escaped the module root; the file was in the same directory. Nothing exported vsa_jit, so nothing ever compiled it, so nobody found out. --- src/root.zig | 7 +++++++ src/vm/jit_unified.zig | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/root.zig b/src/root.zig index 58fb8fa..02bf213 100644 --- a/src/root.zig +++ b/src/root.zig @@ -111,3 +111,10 @@ test "every public declaration of this module is analysed" { // while its CI stayed green throughout (zig-hdc#2). @import("std").testing.refAllDeclsRecursive(@This()); } + +// vsa_jit was never exported, so nothing ever compiled it, so nobody found +// that vm/jit_unified.zig imported "../../jit_arm64.zig" — a path that +// escapes the module root and could not resolve on any machine. The file +// sat beside it the whole time. Exporting it is what makes the compiler +// look, and the compiler looking is the only reason the defect surfaced. +pub const vsa_jit = @import("vsa_jit.zig"); diff --git a/src/vm/jit_unified.zig b/src/vm/jit_unified.zig index 2b3ac1e..45ac5c6 100644 --- a/src/vm/jit_unified.zig +++ b/src/vm/jit_unified.zig @@ -10,7 +10,7 @@ const std = @import("std"); const builtin = @import("builtin"); // Import architecture-specific backends -const arm64 = @import("../../jit_arm64.zig"); +const arm64 = @import("jit_arm64.zig"); const x86_64 = @import("jit_x86_64.zig"); // ═══════════════════════════════════════════════════════════════════════════════