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