[PATCH] D25491: [libcxx] Use C++14 when building libc++ with musl

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 12 10:57:57 PDT 2016


phosek updated this revision to Diff 74402.
phosek marked an inline comment as done.

Repository:
  rL LLVM

https://reviews.llvm.org/D25491

Files:
  CMakeLists.txt


Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -325,6 +325,9 @@
 
 # Required flags ==============================================================
 set(LIBCXX_STANDARD_VER c++11 CACHE INTERNAL "internal option to change build dialect")
+if (LIBCXX_HAS_MUSL_LIBC)
+  set(LIBCXX_STANDARD_VER c++14)
+endif()
 add_compile_flags_if_supported(-std=${LIBCXX_STANDARD_VER})
 mangle_name("LIBCXX_SUPPORTS_STD_EQ_${LIBCXX_STANDARD_VER}_FLAG" SUPPORTS_DIALECT_NAME)
 if (NOT MSVC AND NOT ${SUPPORTS_DIALECT_NAME})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25491.74402.patch
Type: text/x-patch
Size: 588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161012/8a5bbf06/attachment.bin>


More information about the cfe-commits mailing list