[libc++] Error if someone tries to use MSVC and tell them to contact the libc++ devel...
authorNikolas Klauser <nikolasklauser@berlin.de>
Mon, 4 Jul 2022 01:07:26 +0000 (03:07 +0200)
committerNikolas Klauser <nikolasklauser@berlin.de>
Thu, 14 Jul 2022 17:35:12 +0000 (19:35 +0200)
Nobody knows if there are users of libc++ with MSVC. Let's try to find that out and encourage them to upstream their changes to make that configuration work.

Reviewed By: ldionne, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D129055

libcxx/include/__config

index f0e36a6..25e2763 100644 (file)
 #    error "libc++ only supports C++03 with Clang-based compilers. Please enable C++11"
 #  endif
 
+#  ifdef _LIBCPP_COMPILER_MSVC
+#    error If you successfully use libc++ with MSVC please tell the libc++ developers and consider upstreaming your \
+changes. We are not aware of anybody using this configuration and know that at least some code is currently broken. \
+If there are users of this configuration we are happy to provide support.
+#  endif
+
 // FIXME: ABI detection should be done via compiler builtin macros. This
 // is just a placeholder until Clang implements such macros. For now assume
 // that Windows compilers pretending to be MSVC++ target the Microsoft ABI,