#quick & dirty module generation with zig build

1 messages · Page 1 of 1 (latest)

mild cliff
robust mauve
#
  1. create a zig program that generates code and prints it to stdout
  2. build that program as an artifact
  3. invoke it with b.addRunArtifact, capturing its output as a generated file via run.captureStdOut()
  4. provide that generated file path as the root source file to the module
mild cliff
#

too used to reading source code in lieu of docs oops