tpoechtrager / wclang

Cross compile source code easily for Windows with clang on Linux/Unix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exceptions disabled even on clang 4.0.0

pisto opened this issue · comments

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 -nostdinc++ -isystem /usr/x86_64-w64-mingw32/sys-root/mingw/include/c++/ -isystem /usr/x86_64-w64-mingw32/sys-root/mingw/include/c++//x86_64-w64-mingw32 -isystem /usr/x86_64-w64-mingw32/sys-root/mingw/include -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

version:

[pisto@pisto steam_interceptor]$ x86_64-w64-mingw32-clang++ --version
wclang: warning: cannot find clang intrinsics directory
clang version 4.0.0 (tags/RELEASE_400/final)
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: /usr/bin

Overriding with the env var appears to work (now tackling another issue so I can't tell if it actually finishes compiling).

Exceptions should not be disabled for 64-bit. For 32-bit see #30.

Please file another bug report for the intrinsic issue.

so you're confirming the issue? Also I don't understand that intrinsic warning, though I'll open a report.

No, this is not a wclang issue. Clang doesn't support C++ exceptions for the 32-bit MinGW target.

No, it's the x64 target, x86_64-w64-mingw32-clang++. For some reason in Fedora they use "mingw32" for mingw64 in the toolchain name, but it actually belongs to the mingw64-c++ package.

Oh, got it. It's due to the intrinsics issue. I am using the intrisics directory to get the compiler version.