DMD cross compiler
Joakim
dlang at joakim.fea.st
Sun Sep 2 01:52:18 UTC 2018
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.
More information about the Digitalmars-d
mailing list