Linux -> Windows crosscompiler
Marvin Gülker via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Tue May 16 01:53:32 PDT 2017
On Tue, May 16, 2017 at 08:22:04AM +0000, Paolo Invernizzi via digitalmars-d-ldc wrote:
> I successfully cross compiled a simple "hello world" application on my Mac
> using something like:
>
> ldc2 -c -mtriple=x86_64-pc-windows-msvc main.d
> LIB=vc/lib lld-link main.obj ldc2_win/lib64/phobos2-ldc.lib
> ldc2_win/lib64/druntime-ldc.lib vc/lib/msvcrt.lib
>
> where I've copied a bunch of libraries in vc/lib, like the mscvrt.lib,
> shell32.lib etc, coming out from a previous wine attempt to use the
> microsoft linker in a dockerised environment.
Very nice. Thank you for the information; so lld does work. I have no
doubts it will do it on Linux as well.
Greetings
Marvin
--
Blog: https://www.guelkerdev.de
PGP/GPG ID: F1D8799FBCC8BC4F
More information about the digitalmars-d-ldc
mailing list