Complicated pre-build and post-build steps in build.zig

What is complicated pre-build step

  • already written in Zig
  • placed in external repo

Typical example - Zig source code generator written in Zig

Of course I can build executables for different targets and fetch them during build (like build_tigerbeetle_executable_get_objcopy),
but it’s already Zig

So I’d like during build:

  • build codegenerator from external zig repo
  • run it as pre-build step

But how to do this?