diff options
author | Marek Kurdej <marek@quasardb.net> | 2020-11-22 15:56:39 +0100 |
---|---|---|
committer | Marek Kurdej <marek@quasardb.net> | 2020-11-22 15:57:25 +0100 |
commit | 3b625060fc91598d28196e559196bfc7b9a929f9 (patch) | |
tree | 1c4aa0e8e02c910ba134221f1a00a0bcf25a057c /libcxx | |
parent | 29dffb0c8a5dbe8bdcc1abe38aafb3f5ea7d57f4 (diff) | |
download | llvm-project-3b625060fc91598d28196e559196bfc7b9a929f9.tar.gz |
[libc++] [libc++abi] Use C++20 standard.
This change is needed to use char8_t when building libc++.
Using the same standard in libc++abi for coherence.
See https://reviews.llvm.org/D91517.
Reviewed By: ldionne, #libc, #libc_abi
Differential Revision: https://reviews.llvm.org/D91691
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt index dd4c93b59d33..f4c7e9992f71 100644 --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -514,11 +514,11 @@ remove_flags(-Wno-pedantic -pedantic-errors -pedantic) # Required flags ============================================================== function(cxx_add_basic_build_flags target) - # Require C++17 for all targets. C++17 is needed to use aligned allocation - # in the dylib. + # Require C++20 for all targets. C++17 is needed to use aligned allocation + # in the dylib. C++20 is needed to use char8_t. set_target_properties(${target} PROPERTIES - CXX_STANDARD 17 - CXX_STANDARD_REQUIRED YES + CXX_STANDARD 20 + CXX_STANDARD_REQUIRED NO CXX_EXTENSIONS NO) # When building the dylib, don't warn for unavailable aligned allocation |