[libcxx-commits] [PATCH] D110338: [libc++] Require a C++20 capable compiler.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 23 08:50:20 PDT 2021
Mordante created this revision.
Herald added a subscriber: mgorny.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
This enforces libcxx and its benchmarks are compiled by a C++20 capable
compiler. Based on review comments in D103413 <https://reviews.llvm.org/D103413>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110338
Files:
libcxx/CMakeLists.txt
libcxx/benchmarks/CMakeLists.txt
Index: libcxx/benchmarks/CMakeLists.txt
===================================================================
--- libcxx/benchmarks/CMakeLists.txt
+++ libcxx/benchmarks/CMakeLists.txt
@@ -145,7 +145,7 @@
RUNTIME_OUTPUT_DIRECTORY "${BENCHMARK_OUTPUT_DIR}"
COMPILE_FLAGS "${BENCHMARK_TEST_LIBCXX_COMPILE_FLAGS}"
LINK_FLAGS "${BENCHMARK_TEST_LIBCXX_LINK_FLAGS}"
- CXX_STANDARD 17
+ CXX_STANDARD 20
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO)
cxx_link_system_libraries(${libcxx_target})
@@ -175,7 +175,7 @@
INCLUDE_DIRECTORIES ""
COMPILE_FLAGS "${BENCHMARK_TEST_NATIVE_COMPILE_FLAGS}"
LINK_FLAGS "${BENCHMARK_TEST_NATIVE_LINK_FLAGS}"
- CXX_STANDARD 17
+ CXX_STANDARD 20
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO)
endif()
Index: libcxx/CMakeLists.txt
===================================================================
--- libcxx/CMakeLists.txt
+++ libcxx/CMakeLists.txt
@@ -537,7 +537,7 @@
# in the dylib. C++20 is needed to use char8_t.
set_target_properties(${target} PROPERTIES
CXX_STANDARD 20
- CXX_STANDARD_REQUIRED NO
+ CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO)
# When building the dylib, don't warn for unavailable aligned allocation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110338.374575.patch
Type: text/x-patch
Size: 1317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210923/dd2bb703/attachment-0001.bin>
More information about the libcxx-commits
mailing list