c313c47611b277d56454b003d6be0f33751bc800
[openwrt/staging/jow.git] / package / libs / libcxx / patches / 010-cxx17.patch
1 --- a/CMakeLists.txt
2 +++ b/CMakeLists.txt
3 @@ -524,9 +524,9 @@ remove_flags(-Wno-pedantic -pedantic-errors -pedantic)
4 if (LIBCXX_HAS_MUSL_LIBC OR LIBCXX_TARGETING_CLANG_CL)
5 # musl's pthread implementations uses volatile types in their structs which is
6 # not a constexpr in C++11 but is in C++14, so we use C++14 with musl.
7 - set(LIBCXX_STANDARD_VER c++14 CACHE STRING "internal option to change build dialect")
8 + set(LIBCXX_STANDARD_VER c++2a CACHE STRING "internal option to change build dialect")
9 else()
10 - set(LIBCXX_STANDARD_VER c++11 CACHE STRING "internal option to change build dialect")
11 + set(LIBCXX_STANDARD_VER c++2a CACHE STRING "internal option to change build dialect")
12 endif()
13 add_compile_flags_if_supported(-std=${LIBCXX_STANDARD_VER})
14 add_compile_flags_if_supported("/std:${LIBCXX_STANDARD_VER}")