Capture output file from a system command that does not take an output argument
Ziggit
Capture output file from a system command that does not take an output argument
I need to execute a command (currently via std.Build.addSystemCommand) and use the file it generates as the input to another build step. Unfortunately, the system command does not take an output argument; it just dumps its output into a hard-coded filename in whatever its cwd is. I have a solution that seems to work, but I’m not happy with it: pub fn build(b: *std.Build) void { // ... const generate = b.addSystemCommand(&.{ // ... command arguments ... }); // Create a...
0 comments
No comments yet.