Seastar's on_internal_error() is a useful replacement for assert() but it's inconvenient that it requires each caller to supply a logger - which is often inconvenient, especially when the caller is a header file. So in this patch we introduce a utils::on_internal_error() function which is the same as seastar::on_internal_error() (the former calls the latter), except it uses a single logger instead of asking the caller to pass a logger. Refs #7871 Signed-off-by: Nadav Har'El <nyh@scylladb.com>
65 lines
1.3 KiB
CMake
65 lines
1.3 KiB
CMake
find_package(cryptopp REQUIRED)
|
|
find_package(rapidxml REQUIRED)
|
|
|
|
add_library(utils STATIC)
|
|
target_sources(utils
|
|
PRIVATE
|
|
UUID_gen.cc
|
|
arch/powerpc/crc32-vpmsum/crc32_wrapper.cc
|
|
arch/powerpc/crc32-vpmsum/crc32.S
|
|
array-search.cc
|
|
ascii.cc
|
|
base64.cc
|
|
big_decimal.cc
|
|
bloom_calculations.cc
|
|
bloom_filter.cc
|
|
buffer_input_stream.cc
|
|
build_id.cc
|
|
config_file.cc
|
|
directories.cc
|
|
disk-error-handler.cc
|
|
dynamic_bitset.cc
|
|
error_injection.cc
|
|
exceptions.cc
|
|
file_lock.cc
|
|
gz/crc_combine.cc
|
|
gz/crc_combine_table.cc
|
|
hashers.cc
|
|
histogram_metrics_helper.cc
|
|
human_readable.cc
|
|
i_filter.cc
|
|
large_bitset.cc
|
|
like_matcher.cc
|
|
limiting_data_source.cc
|
|
lister.cc
|
|
logalloc.cc
|
|
managed_bytes.cc
|
|
multiprecision_int.cc
|
|
murmur_hash.cc
|
|
on_internal_error.cc
|
|
pretty_printers.cc
|
|
rate_limiter.cc
|
|
rjson.cc
|
|
runtime.cc
|
|
to_string.cc
|
|
updateable_value.cc
|
|
utf8.cc
|
|
uuid.cc
|
|
aws_sigv4.cc
|
|
s3/client.cc)
|
|
target_include_directories(utils
|
|
PUBLIC
|
|
${CMAKE_SOURCE_DIR}
|
|
${RAPIDJSON_INCLUDE_DIRS})
|
|
target_link_libraries(utils
|
|
PUBLIC
|
|
Seastar::seastar
|
|
xxHash::xxhash
|
|
PRIVATE
|
|
Boost::regex
|
|
cryptopp::cryptopp
|
|
rapidxml::rapidxml)
|
|
|
|
check_headers(check-headers utils
|
|
GLOB_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/*.hh)
|