DMD cross compiler

Manu turkeyman at gmail.com
Sun Sep 2 02:13:30 UTC 2018


On Sat, 1 Sep 2018 at 18:55, Joakim 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?
>
> What specifically do you want to cross-compile to, something like
> Windows to macOS? LDC already does all this, ie the one compiler
> cross-compiles to every other platform with a single flag, may
> just want to use it.

Yes, but we're talking about DMD...


More information about the Digitalmars-d mailing list