mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
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>
22 lines
542 B
CMake
22 lines
542 B
CMake
if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
|
|
# -fasan -Og breaks some coroutines on aarch64, use -O0 instead
|
|
set(default_Seastar_OptimizationLevel_DEBUG "g")
|
|
else()
|
|
set(default_Seastar_OptimizationLevel_DEBUG "0")
|
|
endif()
|
|
set(Seastar_OptimizationLevel_DEBUG
|
|
${default_Seastar_OptimizationLevel_DEBUG}
|
|
CACHE
|
|
INTERNAL
|
|
"")
|
|
|
|
set(Seastar_DEFINITIONS_DEBUG
|
|
SCYLLA_BUILD_MODE=debug
|
|
DEBUG
|
|
SANITIZE
|
|
DEBUG_LSA_SANITIZER
|
|
SCYLLA_ENABLE_ERROR_INJECTION)
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG
|
|
" -O${Seastar_OptimizationLevel_DEBUG} -g -gz")
|