问题
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.
来源:https://stackoverflow.com/questions/12704537/is-there-a-clang-mingw-cross-compiler-for-linux