Bump default dialect to C++14 for clang-cl

llvm-svn: 343437
This commit is contained in:
Eric Fiselier 2018-10-01 01:51:46 +00:00
parent e60359efbb
commit cd269132ec
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ remove_flags(-Wno-pedantic -pedantic-errors -pedantic)
# 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")