Closed cosing closed 1 year ago
had to patch out libgcc_eh from clang myself, works fine after :)
btw while clang itself builds fine linked to the static runtimes libc++ and friends will not. these need to be built with -shared-libgc -shared-libstdc++ in LDFLAGS. Sadly rust is one thing that cannot be built with TDM because it relies heavily on libgcc_eh.
here is the patch for clang-14.0 need to add LDFLAGS+=" -shared-libgcc -shared-libstdc++" when building it. works just fine after that.
clang needs the shared runtimes hence the LDFLAGS+=" -shared-libgcc -shared-libstdc++" it cannot be built without them unless someone hacks it together (hint hard as hell to do because cmake does not think static runtimes can throw exceptions).
This results in TDM and clang not working together in Windows(clang --target=x86_64-w64-mingw)
I had to repackage using ar.exe
Is this normal?
or I don't have my clang configured properly