Files
scylladb/cmake/mode.DEV.cmake
Kefu Chai b234c839e4 build: cmake: add build mode support
Scylla uses different build mode to customize the build for different
purposes. in this change, instead of having it in a python dictionary,
the customized settings are located in their own files, and loaded
on demand. we don't support multi-config generator yet.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
2023-02-16 00:07:37 +08:00

15 lines
313 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)