Skip to content

[AIX] cxx_std_23 is currently not a known feature to ibm-clang #66952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libcxx/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
else()
target_compile_features( cxx-benchmarks-flags INTERFACE cxx_std_23)
Expand Down