Commit86365d9fRecorded17 Jul 2026Repositorysigil-vt

spike: default zig to PATH instead of a hardcoded local toolchain path

Message

The fuzz driver hardcoded an absolute path from the author's machine as the zig default. Default to PATH and document the monorepo-toolchain override, matching dev-redirects.sgl's relative ../sigil convention.

Changed
 spike/fuzz.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Diff
spike/fuzz.shmodified
@@ -3,7 +3,9 @@
3
# The pure C core (native/vt.c under -DVT_FUZZ) is standalone — no libsigil.
4
set -euo pipefail
5
cd "$(dirname "$0")/.."
6
ZIG="${ZIG:-/home/daviwil/Projects/Code/sigil/sigil/tools/zig/zig}"
+6
# Any zig with the sanitizers works. Override if zig is not on PATH, e.g. to use
+7
# the Sigil monorepo's pinned toolchain: ZIG=../sigil/tools/zig/zig spike/fuzz.sh
+8
ZIG="${ZIG:-zig}"
9
ITERS="${1:-3000000}"
10
mkdir -p build
11
echo "== compiling vt-fuzz (ASan+UBSan) =="