Files
scylladb/cmake/mode.Dev.cmake
Kefu Chai f7556edc65 build: cmake: define SCYLLA_ENABLE_PREEMPTION_SOURCE for dev build
in fabab2f4, we introduced preemption_source, and added
`SCYLLA_ENABLE_PREEMPTION_SOURCE` preprocessor macro to enable
opt-in the pluggable preemption check.

but CMake building system was not updated accordingly.

so, in this change, let's sync the CMake building system with
`configure.py`.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>

Closes scylladb/scylladb#19951
2024-08-04 11:46:28 +03:00

22 lines
502 B
CMake

set(CMAKE_CXX_FLAGS_DEV
""
CACHE
INTERNAL
"")
update_cxx_flags(CMAKE_CXX_FLAGS_DEV
OPTIMIZATION_LEVEL "2")
set(scylla_build_mode_Dev "dev")
set(Seastar_DEFINITIONS_DEV
SCYLLA_BUILD_MODE=${scylla_build_mode_Dev}
DEVEL
SEASTAR_ENABLE_ALLOC_FAILURE_INJECTION
SCYLLA_ENABLE_ERROR_INJECTION
SCYLLA_ENABLE_PREEMPTION_SOURCE)
foreach(definition ${Seastar_DEFINITIONS_DEV})
add_compile_definitions(
$<$<CONFIG:Dev>:${definition}>)
endforeach()
maybe_limit_stack_usage_in_KB(21 Dev)