[libcxx-commits] [libcxx] [AIX] cxx_std_23 is currently not a known feature to ibm-clang (PR #66952)
David Tenty via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 20 14:09:07 PDT 2023
================
@@ -81,7 +81,9 @@ add_library( cxx-benchmarks-flags INTERFACE)
# requesting `cxx_std_23` results in an error -- somehow CMake fails to
# translate the `c++23` flag into `c++latest`, and the highest numbered C++
# version that MSVC flags support is C++20.
-if (MSVC)
+# ibm-clang does not recognize the cxx_std_32 flag, so use this as a temporary
+# workaround on AIX as well.
+if (MSVC OR ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
add_compile_options(/std:c++latest)
----------------
daltenty wrote:
You probably want to specify a gcc/clang version of this flag in this case, otherwise it seems like we'll pass the msvc style version.
https://github.com/llvm/llvm-project/pull/66952
More information about the libcxx-commits
mailing list