build errors with MinGW-W64 GCC-8.1.0 on Windows

Hi all,

I've not much experience with building C++ standard libraries like libcxx
and libcxxabi. But:

As the build of llvm and clang fails on my Windows 7 with Mingw-w64
toolchain. It fails in the standard C++ library part and not in pure C++
code. So I was thinking to first build the provided LLVM libcxx (and
libcxxabi) libraries into my Mingw-w64 toolchain. Replacing the standard C++
library of Mingw-w64. And then go for a build of LLVM with clang itself.

Could that work?

If so believe so, could someone provide advise how to get this done? like:
flags to cmake, folder structure and correct PATH settings.

Best regards,
Maarten Verhage