mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
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.
This commit is contained in:
parent
852129384b
commit
bf6c595d64
@ -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);
|
exe_routes_file.root_module.addImport("zmpl", zmpl_module);
|
||||||
|
|
||||||
const run_routes_file_cmd = b.addRunArtifact(exe_routes_file);
|
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");
|
const routes_file_path = run_routes_file_cmd.addOutputFileArg("routes.zig");
|
||||||
run_routes_file_cmd.addArgs(&.{
|
run_routes_file_cmd.addArgs(&.{
|
||||||
root_path,
|
root_path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user