[libcxx-commits] [libcxx] 1abff08 - [AIX] cxx_std_23 is currently not a known feature to ibm-clang (#66952)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 21 07:34:11 PDT 2023


Author: Jake Egan
Date: 2023-09-21T10:34:07-04:00
New Revision: 1abff08e9e23ec44d5095c943f19ebbe7df1ed03

URL: https://github.com/llvm/llvm-project/commit/1abff08e9e23ec44d5095c943f19ebbe7df1ed03
DIFF: https://github.com/llvm/llvm-project/commit/1abff08e9e23ec44d5095c943f19ebbe7df1ed03.diff

LOG: [AIX] cxx_std_23 is currently not a known feature to ibm-clang (#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"
```

Added: 
    

Modified: 
    libcxx/benchmarks/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libcxx/benchmarks/CMakeLists.txt b/libcxx/benchmarks/CMakeLists.txt
index ccc98df638ae397..c7cb3309f71bde8 100644
--- a/libcxx/benchmarks/CMakeLists.txt
+++ b/libcxx/benchmarks/CMakeLists.txt
@@ -83,6 +83,10 @@ add_library(               cxx-benchmarks-flags INTERFACE)
 # version that MSVC flags support is C++20.
 if (MSVC)
   add_compile_options(/std:c++latest)
+# ibm-clang does not recognize the cxx_std_32 flag, so use this as a temporary
+# workaround on AIX as well.
+elseif (${CMAKE_SYSTEM_NAME} MATCHES "AIX")
+  add_compile_options(-std=c++23)
 else()
   target_compile_features( cxx-benchmarks-flags INTERFACE cxx_std_23)
 endif()


        


More information about the libcxx-commits mailing list