In90a6c3bd7a("build: reduce release mode inline tuning on aarch64") we reduced inlining on aarch64, due to miscompiles. In224a2877b9("build: disable -Og in debug mode to avoid coroutine asan breakage") we disabled optimization in debug mode, due to miscompiles. With clang 18.1, it appears the miscompiles are gone, and we can remove the two workarounds. Closes scylladb/scylladb#19531
20 lines
485 B
CMake
20 lines
485 B
CMake
set(OptimizationLevel "g")
|
|
|
|
update_cxx_flags(CMAKE_CXX_FLAGS_DEBUG
|
|
WITH_DEBUG_INFO
|
|
OPTIMIZATION_LEVEL ${OptimizationLevel})
|
|
|
|
set(scylla_build_mode_Debug "debug")
|
|
set(Seastar_DEFINITIONS_DEBUG
|
|
SCYLLA_BUILD_MODE=${scylla_build_mode_Debug}
|
|
DEBUG
|
|
SANITIZE
|
|
DEBUG_LSA_SANITIZER
|
|
SCYLLA_ENABLE_ERROR_INJECTION)
|
|
foreach(definition ${Seastar_DEFINITIONS_DEBUG})
|
|
add_compile_definitions(
|
|
$<$<CONFIG:Debug>:${definition}>)
|
|
endforeach()
|
|
|
|
maybe_limit_stack_usage_in_KB(40 Debug)
|