Is there a Clang mingw cross compiler for Linux

2019-02-06 09:42发布

问题:

In Linux, and specifically on Debian or Ubuntu, there are pre-packaged Mingw cross compilers which can generate Windows EXEs.

But is there a similar cross compiler using Clang instead of GCC? (Or instructions on how to build such a beast.)

回答1:

I've written a tool with which you can compile easily with clang for windows on linux. Check out: https://github.com/tpoechtrager/wclang.