<p dir="ltr">I'm wondering whether should fix this together with making -singleobj the default for executable builds, and any other, similar issues.</p>
<p dir="ltr">- David<br></p>
<p dir="ltr">---<br>
Sent from a mobile device.</p>
<div class="gmail_quote">On 7 Nov 2015 14:50, "Kai Nacke via digitalmars-d-ldc" <<a href="mailto:digitalmars-d-ldc@puremagic.com">digitalmars-d-ldc@puremagic.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thursday, 5 November 2015 at 21:51:09 UTC, Fyodor Ustinov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
Simple test:<br>
File "a.d" contained this:<br>
---<br>
module tst;<br>
<br>
import std.stdio;<br>
<br>
void main() {<br>
writeln("Hello world");<br>
}<br>
----<br>
<br>
After compiling this file by "dmd a.d" I get executable with name "a".<br>
After compiling by "ldc2 a.d" - executable with name "tst".<br>
<br>
I do not know, who more right in this situation, but DMD is a "reference compiler" and his behavior "more correct", I think.<br>
<br>
WBR,<br>
Fyodor.<br>
</blockquote>
<br>
Hi Fyodor!<br>
<br>
ldc2 does not have the goal to be compatible in all aspects with dmd. So this behaviour is ok. But: ldmd2 is meant to be compatible with dmd. This tool has the same problem which is clearly a bug. Please create a bug report at <a href="https://github.com/ldc-developers/ldc/issues" rel="noreferrer" target="_blank">https://github.com/ldc-developers/ldc/issues</a>.<br>
<br>
Regards,<br>
Kai<br>
</blockquote></div>