[cfe-dev] [libc++] Compiling with MinGW-w64
Mateusz MikuĊa via cfe-dev
cfe-dev at lists.llvm.org
Fri Mar 17 15:34:05 PDT 2017
Hello,
I'm planing to get libc++ compiling with MinGW-w64, right now without
patches it fails with:
CMake Error at projects/libcxx/CMakeLists.txt:396 (message):
C++11 or greater is required but the compiler does not support c++11
It is caused by adding `-nodefaultlibs` flag (it passes it's own check
[1]
<https://github.com/llvm-mirror/libcxx/blob/master/cmake/config-ix.cmake#L27>).
However many following checks fail due to undefined references, results
with gcc [2] <https://reviews.llvm.org/P7975> and clang [3]
<https://reviews.llvm.org/P7976>.
Hard-coding 0 for LIBCXX_SUPPORTS_NODEFAULTLIBS_FLAG allows it go finish
configuration and fail during build (that's another story).
`-nodefaultlibs` appears several times in libc++ and libc++abi code and
I'm not sure about cleanest way to fix/workaround it.
Any suggestions?
[1]
https://github.com/llvm-mirror/libcxx/blob/master/cmake/config-ix.cmake#L27
[2] https://reviews.llvm.org/P7975
[3] https://reviews.llvm.org/P7976
Thanks,
Mateusz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170317/0cfdbc6b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170317/0cfdbc6b/attachment.sig>
More information about the cfe-dev
mailing list