Skip to content

Commit

Permalink
build: Disable experimental coroutine warning for clang-14
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Pope <ben@redpanda.com>
  • Loading branch information
BenPope committed May 14, 2022
1 parent ef653a0 commit c6b9131
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/v_library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ include(CMakeParseArguments)
set(V_CXX_STANDARD 20)
set(V_DEFAULT_LINKOPTS)
set(V_DEFAULT_COPTS -Wall -Wextra -Werror -Wno-missing-field-initializers)
# Disable warning for clang++-14 only.
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 15)
list(APPEND V_DEFAULT_COPTS -Wno-deprecated-experimental-coroutine)
endif()
set(V_COMMON_INCLUDE_DIRS
"${PROJECT_SOURCE_DIR}/src/v")
# v_cc_library()
Expand Down

0 comments on commit c6b9131

Please sign in to comment.