#Correct way to generate larger amounts of code at build time?
1 messages · Page 1 of 1 (latest)
create a self contained tool that takes input, and configures output from the command line, then you can run that through the build system. Bonus points for doing it in zig :P
you can add file/directory inputs/outputs to things run by the build system, and they will be automagically cached for you.
see std.Build.addSystemCommand/addRunArtifact
as well as std.Build.Step.Run, which is the result of the above functions