Linux -> Windows crosscompiler

kinke via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue May 16 00:49:53 PDT 2017


On Tuesday, 16 May 2017 at 07:16:37 UTC, Marvin Gülker wrote:
> I however realised that there is an additional problem; I would 
> have to crosscompile my C dependencies as well, targetting 
> MSVC. That is not possible as of now to my knowledge. One can 
> crosscompile targetting MinGW (MXE does a great job here), but 
> not targetting MSVC. Even if it would be, I bet that people's 
> build systems do not cover that case and thereby cause a lot of 
> work on each dependant project's build system for me, which I 
> don't have the time for.

Yeah, that's what I meant by whether you are fine with the 
toolchain. clang does an excellent job at compiling gcc-style 
code (incl. pragmas and special attributes) for MSVC; I used it a 
few years back to compile parts of the MinGW C runtime itself. 
Just saying that it would be possible. ;)


More information about the digitalmars-d-ldc mailing list