Skip to content

Commit 1abff08

Browse files
authored
[AIX] cxx_std_23 is currently not a known feature to ibm-clang (llvm#66952)
Temporary workaround for the following CMake error: ``` CMake Error in /llvm/libcxx/benchmarks/CMakeLists.txt: The compiler feature "cxx_std_23" is not known to CXX compiler "IBMClang" ```
1 parent c601928 commit 1abff08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/benchmarks/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ add_library( cxx-benchmarks-flags INTERFACE)
8383
# version that MSVC flags support is C++20.
8484
if (MSVC)
8585
add_compile_options(/std:c++latest)
86+
# ibm-clang does not recognize the cxx_std_32 flag, so use this as a temporary
87+
# workaround on AIX as well.
88+
elseif (${CMAKE_SYSTEM_NAME} MATCHES "AIX")
89+
add_compile_options(-std=c++23)
8690
else()
8791
target_compile_features( cxx-benchmarks-flags INTERFACE cxx_std_23)
8892
endif()

0 commit comments

Comments
 (0)