open a communication channel between the build system and application #20604
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Extracted from #20580.
When the build system spawns a child process via a
Run
step, unless opted out, give it an environment variable that communicates a file descriptor which is a pipe. For example,ZIG_BUILD=4
. This file descriptor is an open pipe so that the application can speak the zig build system protocol, which will be available in the Zig standard library for convenience.This will enable the following use cases:
--watch
extend into arbitrary environments, with a little bit of cooperation from application developers.Of course, applications are free to simply ignore this open pipe as well, just like they can ignore stdin, stdout, or stderr.
The text was updated successfully, but these errors were encountered: