I have a build.shaders.zig file in my project that runs the sokol-shdc compiler against all my shaders, producing .glsl.zig sources. I have a hot-reload feature that re-runs zig build against this file while the game is running, the reads the .glsl.zig files, pulls the glsl source out, and reloads the shaders. This all works fine, however if there is a compile error I want to display the error in-game.
I'm currently displaying the stderr of the zig build command, and it used to print the stderr of run steps, but this is no longer the case.
I see there is a captureStdErr() function where I can get a lazy path to the captured stderr and then put it somewhere, but is it possible to just output the runstep's stderr to zig build's stderr?