<div dir="ltr">Btw, ther is a gdc which stil uses c++ version of dfrontend, so on <span style="font-size:12.8px">DragonFlyBSD you can build dmd using gdc.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 15, 2018 at 2:25 PM, Daniel Kozak <span dir="ltr"><<a href="mailto:kozzi11@gmail.com" target="_blank">kozzi11@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So why not to use cross compilation?</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 15, 2018 at 2:10 PM, Joakim via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Monday, 15 January 2018 at 12:15:27 UTC, Temtaime wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And what builds C++ compiler from source ? :)<br>
</blockquote>
<br></span>
The system C/C++ compiler is already built and there, obviously. Since nobody ships a D compiler with their OS, I'm not sure how you think that's relevant.<span><br>
<br>
On Monday, 15 January 2018 at 12:36:04 UTC, Daniel Kozak wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Exactly, there is no reason to build 2.067, 2.076, and 2.078, just build the latest one with the previos one. It is common (in case you do not have dlang compiler in your distribution) to start with downloading existing binary and compile lastest version as a package, then you can use this package as a dependency for building new versions.<br>
</blockquote>
<br></span>
There is no existing binary for an OS that doesn't have a port yet!<br>
<br>
Take the current DragonFlyBSD port that's being done: he had to port both dmd 2.067, which is written in C++, and the latest dmd master to DragonFly, in order to have source packages for their ports repository:<br>
<br>
<a href="https://github.com/dlang/dmd/pull/7463" rel="noreferrer" target="_blank">https://github.com/dlang/dmd/p<wbr>ull/7463</a><br>
<br>
If you bump the D compiler required for latest master, he'll have to port every bumped D compiler too, ie 2.067, 2.076, and 2.078, in order to have a source package. That's going to be a huge pain that will stop many from doing the initial port.<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>