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
crimson: fix build with GCC-10 #33233
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
add_library(crimson::cflags INTERFACE IMPORTED) | ||
set(crimson_cflag_definitions "WITH_SEASTAR=1") | ||
# disable concepts to address https://github.com/boostorg/asio/issues/312 | ||
if((CMAKE_CXX_COMPILER_ID STREQUAL GNU AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10) OR | ||
(CMAKE_CXX_COMPILER_ID STREQUAL Clang)) | ||
list(APPEND crimson_cflag_definitions | ||
"BOOST_ASIO_DISABLE_CONCEPTS") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, we don't plan to use ASIO, so I'm not afraid about disabling concepts there (and forgetting to re-enable when the bug gets fixed). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's
|
||
endif() | ||
set_target_properties(crimson::cflags PROPERTIES | ||
INTERFACE_COMPILE_DEFINITIONS "WITH_SEASTAR=1" | ||
INTERFACE_COMPILE_DEFINITIONS "${crimson_cflag_definitions}" | ||
INTERFACE_LINK_LIBRARIES Seastar::seastar) | ||
|
||
set(crimson_common_srcs | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for those who are interested in a minimal reproducer, see https://www.godbolt.org/z/6igCM2