Dockerfile with cross-compiler targeting Windows x64
Joakim
dlang at joakim.fea.st
Thu Apr 5 15:22:40 UTC 2018
On Thursday, 5 April 2018 at 11:46:42 UTC, Jacob Carlborg wrote:
> I've created a Dockerfile [1] containing LDC, configured for
> cross-compiling targeting Windows x64.
>
> It's based on the instructions provided by kinke here [2].
>
> Note, it downloads the MSVC libs from Dropbox.
>
> [1]
> https://github.com/jacob-carlborg/docker-ldc-windows/blob/master/Dockerfile
> [2]
> https://github.com/ldc-developers/ldc/pull/2142#issuecomment-304472412
>
> --
> /Jacob Carlborg
Nice, rather than downloading the pre-built ldc for Windows and
extracting its runtime, you may be interested in cross-compiling
the stdlib yourself. The only obstacle may be that the build
requires a C cross-compiler for one or two C files, but clang may
be good enough to do that now.
If you go that route, the ldc devs would appreciate a PR filling
out this preset configuration stub to cross-compile for Windows,
with the info you use:
https://github.com/ldc-developers/ldc/blob/master/runtime/PresetRuntimeConfiguration.cmake#L46
More information about the Digitalmars-d-announce
mailing list