summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-10-01 01:51:46 +0000
committerEric Fiselier <eric@efcs.ca>2018-10-01 01:51:46 +0000
commitcd269132ec1f4fc03c4405c42c2c991b5ace595e (patch)
treebff1c2ca7dfa76f691d9d7a338a83e7e4617173d
parente60359efbb54a72aa2e45b7ab828faeea66185e0 (diff)
downloadbcm5719-llvm-cd269132ec1f4fc03c4405c42c2c991b5ace595e.tar.gz
bcm5719-llvm-cd269132ec1f4fc03c4405c42c2c991b5ace595e.zip
Bump default dialect to C++14 for clang-cl
llvm-svn: 343437
-rw-r--r--libcxx/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
index b56060082f8..7295e01a98e 100644
--- a/libcxx/CMakeLists.txt
+++ b/libcxx/CMakeLists.txt
@@ -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")
OpenPOWER on IntegriCloud