DMD as cross-compiler

Robert M. Münch robert.muench at saphirion.com
Wed Nov 11 21:09:14 UTC 2020


On 11 Nov 2020 at 11:49:54 CET, "Walter Bright" <newshound2 at digitalmars.com>
wrote:

> I realized that DMD is pretty close to being a cross-compiler, and won't need
> 
> much work to go the rest of the way. I anticipate it could be very convenient
> 
> when inconvenient to get the native DMD installed.

Digging into Go since some weeks, and the x-compiling of it is just super:

GOOS=windows GOARCH=amd64 go build

And you get a Windows EXE from OSX. That's it, zero config setup. The simpler
these things work, the better for the whole language.

-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster




More information about the Digitalmars-d mailing list