You can invoke Zig without build.zig:
zig build-obj file.zig
And then include the object file along with your other sources. How you do this will of course depend on your build system.