summaryrefslogtreecommitdiff
path: root/libcxx/benchmarks
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2021-02-04 18:35:26 +0100
committerMark de Wever <koraq@xs4all.nl>2021-02-09 18:34:07 +0100
commit34acc91642440b8e4bad17acfdbb1314c8f2043e (patch)
tree22927a2a7f36b0eec10175f03850bcea46a94ca9 /libcxx/benchmarks
parent2544060e718098c2cf736e2667ee007fbc58da50 (diff)
downloadllvm-34acc91642440b8e4bad17acfdbb1314c8f2043e.tar.gz
[libc++] Require C++20 to build the benchmarks.
Some work-in-progress patches for the format header contain benchmarks. The format header requires C++20 to build. This is a preparation to make it easy to add these benchmarks. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D96057
Diffstat (limited to 'libcxx/benchmarks')
-rw-r--r--libcxx/benchmarks/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/benchmarks/CMakeLists.txt b/libcxx/benchmarks/CMakeLists.txt
index 0327f05ccfa6..340de8640f04 100644
--- a/libcxx/benchmarks/CMakeLists.txt
+++ b/libcxx/benchmarks/CMakeLists.txt
@@ -142,7 +142,7 @@ function(add_benchmark_test name source_file)
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})
@@ -172,7 +172,7 @@ function(add_benchmark_test name source_file)
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()