wclang
wclang copied to clipboard
Cross compile source code easily for Windows with clang on Linux/Unix
I described the bug in the GCC tracker (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81943), here I'll describe what applies to wclang. wclang (x86_64-w64-mingw32-clang++) uses the wrong ABI, while clang-cl uses the correct one. I believe...
``` wclang: verbose: command in: x86_64-w64-mingw32-clang++ -wc-verbose -fexceptions -O3 -std=c++14 -shared -I./sdk/public/steam -o steam_interceptor.dll steam_interceptor.def steam_interceptor.cpp -Wl,--exclude-all-symbols -L. -static -lsteam_api64_original wclang: verbose: command out: /usr/lib64/ccache/clang++ -D__CRT__NO_INLINE -L/usr/lib/gcc/x86_64-w64-mingw32/7.1.0 -target x86_64-w64-mingw32 -nostdinc...
Everytime I try to build something simple I always run into this issue: ``` root@4bb1c579744e:/usr/src/cmake-hello-world# w64-clang++ HelloWorld.cpp Hello/Speaker.cpp -ohello_world.exe -IHello /usr/src/mxe/usr/bin/x86_64-w64-mingw32.static-ld: cannot find crt2.o: No such file or directory /usr/src/mxe/usr/bin/x86_64-w64-mingw32.static-ld:...
It seems wclang is MXE-aware at least to some degree. Some docs on how to use it with MXE would be appreciated (including if MXE is not installed globally). Specifically:...