https://issues.dlang.org/show_bug.cgi?id=17838
Seb <greensunn...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |greensunn...@gmail.com --- Comment #1 from Seb <greensunn...@gmail.com> --- > So: can rdmd be either patched or invoked in order to avoid the D compiler it > invokes needing to inherit a file descriptor from it? :-) Yes it can (in theory). With the improvements in 2.079, DMD now supports JSON output via stdout (see e.g. https://run.dlang.io/is/DiSyCl). That's what https://github.com/dlang/tools/pull/292 was supposed to do. With the JSON output, no temporary .deps file would be needed and the stdout could be parsed directly, but I think 292 would just instruct dmd to save the JSON output to the temp folder, s.t. no further complications are needed. > So: can rdmd be either patched Sure, have you tried patching spawnProcess out with a) execute and saving the output manually b) a custom implementation that uses real files instead of file pointers? --