[libcxx] r343437 - Bump default dialect to C++14 for clang-cl

Eric Fiselier eric at efcs.ca
Sun Sep 30 18:51:46 PDT 2018


Author: ericwf
Date: Sun Sep 30 18:51:46 2018
New Revision: 343437

URL: http://llvm.org/viewvc/llvm-project?rev=343437&view=rev
Log:
Bump default dialect to C++14 for clang-cl

Modified:
    libcxx/trunk/CMakeLists.txt

Modified: libcxx/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/CMakeLists.txt?rev=343437&r1=343436&r2=343437&view=diff
==============================================================================
--- libcxx/trunk/CMakeLists.txt (original)
+++ libcxx/trunk/CMakeLists.txt Sun Sep 30 18:51:46 2018
@@ -503,7 +503,7 @@ remove_flags(-Wno-pedantic -pedantic-err
 
 # Required flags ==============================================================
 set(LIBCXX_STANDARD_VER c++11 CACHE INTERNAL "internal option to change build dialect")
-if (LIBCXX_HAS_MUSL_LIBC)
+if (LIBCXX_HAS_MUSL_LIBC OR LIBCXX_TARGETING_CLANG_CL)
   # musl's pthread implementations uses volatile types in their structs which is
   # not a constexpr in C++11 but is in C++14, so we use C++14 with musl.
   set(LIBCXX_STANDARD_VER c++14 CACHE INTERNAL "internal option to change build dialect")




More information about the libcxx-commits mailing list