[Issue 17838] rdmd file-descriptor issues with snap packages

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 24 07:32:32 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=17838

Seb <greensunny12 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greensunny12 at gmail.com

--- Comment #1 from Seb <greensunny12 at 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?

--


More information about the Digitalmars-d-bugs mailing list