instead of setting a single stack usage threshold, set per-mode stack usage threshold. this prepares for the support of multi-config generator. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
21 lines
467 B
CMake
21 lines
467 B
CMake
set(Seastar_OptimizationLevel_DEV "2")
|
|
set(CMAKE_CXX_FLAGS_DEV
|
|
""
|
|
CACHE
|
|
INTERNAL
|
|
"")
|
|
string(APPEND CMAKE_CXX_FLAGS_DEV
|
|
" -O${Seastar_OptimizationLevel_DEV}")
|
|
|
|
set(Seastar_DEFINITIONS_DEV
|
|
SCYLLA_BUILD_MODE=devel
|
|
DEVEL
|
|
SEASTAR_ENABLE_ALLOC_FAILURE_INJECTION
|
|
SCYLLA_ENABLE_ERROR_INJECTION)
|
|
foreach(definition ${Seastar_DEFINITIONS_DEV})
|
|
add_compile_definitions(
|
|
$<$<CONFIG:Dev>:${definition}>)
|
|
endforeach()
|
|
|
|
maybe_limit_stack_usage_in_KB(21 Dev)
|