dud: A dub replacement

tchaloupka chalucha at gmail.com
Tue Nov 26 07:21:40 UTC 2019


On Tuesday, 26 November 2019 at 00:32:54 UTC, Adam D. Ruppe wrote:
> On Monday, 25 November 2019 at 23:46:31 UTC, H. S. Teoh wrote:
>> Oooh very nice!!  That's wonderful to hear.  So you're saying 
>> LDC out-of-the-box can cross-compile from Linux to Windows 
>> directly?  How to do this?  I'm *very* interested!
>
> ldc2 -mtriple=x86_64-pc-windows-msvc
>
> though you will prolly have to grab the druntime libs from the 
> windows build.
>
> this same basic thing works for android and mac os too.

Or with dub:

dub build --arch=x86_64-pc-windows-msvc

You only need to provide windows libs from windows ldc package to 
your linux installation and tweak the config.
See https://wiki.dlang.org/Cross-compiling_with_LDC for details.

Using it every day now and it works like a charm.



More information about the Digitalmars-d-announce mailing list