dmd host compiler

Jonathan Marler johnnymarler at gmail.com
Fri Jul 5 17:36:36 UTC 2019


On Friday, 5 July 2019 at 17:11:37 UTC, Patrick Schluter wrote:
> On Friday, 5 July 2019 at 16:36:11 UTC, Martin Krejcirik wrote:
>> Allright, I managed to compile 2.085 using 2.085 so the real 
>> queastion is, what is the minimum version requirement for host 
>> compiler.
>
> I Had the same experience on Linux. It was not possible to 
> build dmd with a predecessing version between version 2.074 and 
> version 2.08?. I had to download a binary of higher version to 
> build the newer  compiler or else I would have been stuck on 
> 2.073. It's a rather annoying as we have really strange rules 
> in place that normally do not allow to install binaries from 
> Internet.

Another option would be to use 2.074 to compile 2.075, then use 
that to compile 2.076, and so on...of course using the release 
versions is arbitrary, and may not be granular enough and will 
likely be too granular in most cases.

One really cool thing about D though is that now DMD is 
completely in D, if you compile it with the `build.d` script it 
only takes about 20 seconds to compile the whole thing.  The 
Makefile still takes longer because it's using many invocations 
of the compiler though.



More information about the Digitalmars-d mailing list