DMD cross compiler

Manu turkeyman at gmail.com
Mon Sep 3 08:57:42 UTC 2018


On Mon, 3 Sep 2018 at 01:40, Jacob Carlborg via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On Saturday, 1 September 2018 at 20:12:24 UTC, Manu wrote:
> > I know there's been discussion on this before, I just want a
> > definitive reference.
> >
> > It looks like it would be relatively straight forward for DMD
> > to be a
> > cross-compiler.
> > A few version() statements could be runtime if's, and that's
> > pretty much it.
> > When hacking on parts of DMD, I frequently make hacks that turn
> > such
> > versions into runtime if's to test multiple targets from the
> > one dev
> > workflow.
> >
> > It would be about 100 times more convenient to supply an arg,
> > than make hacks all over the code... so, why not?
>
> Yeah, I don't see a reason why DMD should not be a
> cross-compiler. I've been thinking the same thing as well.

Not being a cross-compiler makes iteration and testing unnecessarily
hard and slow.
We should try and reduce friction to developing DMD. Not being a
cross-compiler has definitely stopped me on multiple instances on
account of "ah, it's all just too hard!".


More information about the Digitalmars-d mailing list