From bf6c595d6437a3f49e9b03d7e4034e50c7a56a3a Mon Sep 17 00:00:00 2001 From: Bob Farrell Date: Sun, 6 Oct 2024 10:53:31 +0100 Subject: [PATCH] Zig cache hack This should solve Zig caching issues but is a temporary fix - instead we should pass file args to the command which will help Zig to know when to cache and when to refresh. --- build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig b/build.zig index 7a6d504..d204e56 100644 --- a/build.zig +++ b/build.zig @@ -168,6 +168,7 @@ pub fn jetzigInit(b: *std.Build, exe: *std.Build.Step.Compile, options: JetzigIn exe_routes_file.root_module.addImport("zmpl", zmpl_module); const run_routes_file_cmd = b.addRunArtifact(exe_routes_file); + run_routes_file_cmd.has_side_effects = true; // FIXME const routes_file_path = run_routes_file_cmd.addOutputFileArg("routes.zig"); run_routes_file_cmd.addArgs(&.{ root_path,