We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f74e94 commit edc93a7Copy full SHA for edc93a7
1 file changed
compiler/src/dmd/main.d
@@ -582,7 +582,11 @@ private int tryMain(const(char)[][] argv, out Param params)
582
583
buf.reset(); // reuse the buffer
584
genhdrfile(m, params.dihdr.fullOutput, buf);
585
- if (!writeFile(m.loc, m.hdrfile.toString(), buf[]))
+ if (params.dihdr.name == "-") {
586
+ size_t n = fwrite(buf[].ptr, 1, buf.length, stdout);
587
+ assert(n == buf.length);
588
+ }
589
+ else if (!writeFile(m.loc, m.hdrfile.toString(), buf[]))
590
fatal();
591
}
592
0 commit comments