* transpose include(mode.common) and include (mode.${build_mode}),
so the former can reference the value defined by the latter.
* set stack_usage_threshold for supported build modes.
please note, this compiler option (-Wstack-usage=<bytes>) is only
supported by GCC so far.
Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
17 lines
350 B
CMake
17 lines
350 B
CMake
set(Seastar_OptimizationLevel_DEV "2")
|
|
set(CMAKE_CXX_FLAGS_DEV
|
|
""
|
|
CACHE
|
|
INTERNAL
|
|
"")
|
|
string(APPEND CMAKE_CXX_FLAGS_RELEASE
|
|
" -O${Seastar_OptimizationLevel_RELEASE}")
|
|
|
|
set(Seastar_DEFINITIONS_DEV
|
|
SCYLLA_BUILD_MODE=devel
|
|
DEVEL
|
|
SEASTAR_ENABLE_ALLOC_FAILURE_INJECTION
|
|
SCYLLA_ENABLE_ERROR_INJECTION)
|
|
|
|
set(stack_usage_threshold_in_KB 21)
|