I have run into this odd build failure where DUB’s build.d exits early and reports a compilation issue but no command output when using LDC v1.40.1.
I’ve been unable to reproduce this issue on my own — it only happens through build.d, not through a manual compiler invocation with the very same parameters.
Even more disturbing,
the following patch seems to resolve it:
--- build.d
+++ build.d
@@ ?
- auto proc = execute(command);
+ auto proc = execute(command, null, Config(Config.Flags.stderrPassThrough | Config.Flags.inheritFDs));
Unfortunately, I cannot specify what the preconditions for triggering this are, but for me it happens within a Docker container that is about to be built.
I have run into this odd build failure where DUB’s
build.dexits early and reports a compilation issue but no command output when using LDC v1.40.1.I’ve been unable to reproduce this issue on my own — it only happens through
build.d, not through a manual compiler invocation with the very same parameters.Even more disturbing,
the following patch seems to resolve it:
Unfortunately, I cannot specify what the preconditions for triggering this are, but for me it happens within a Docker container that is about to be built.