DMD cross compiler

bauss jj_1337 at live.dk
Mon Sep 3 09:21:21 UTC 2018


On Sunday, 2 September 2018 at 01:52:18 UTC, Joakim 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.

Not everyone can or want to use LDC.


More information about the Digitalmars-d mailing list