mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 00:02:37 +00:00
Fix multiple deviations from configure.py's coverage mode: - Remove -fprofile-list from CMAKE_CXX_FLAGS_COVERAGE. That flag belongs in COVERAGE_INST_FLAGS applied to other modes, not to coverage mode itself. - Replace incorrect defines (DEBUG, SANITIZE, DEBUG_LSA_SANITIZER, SCYLLA_ENABLE_ERROR_INJECTION) with the correct Seastar debug defines (SEASTAR_DEBUG, SEASTAR_DEFAULT_ALLOCATOR, etc.) that configure.py's pkg-config query produces for coverage mode. - Add sanitizer and stack-clash-protection compile flags for Coverage config, matching the flags that Seastar's pkg-config --cflags output includes for debug builds. - Change CMAKE_STATIC_LINKER_FLAGS_COVERAGE to CMAKE_EXE_LINKER_FLAGS_COVERAGE. Coverage flags need to reach the executable linker, not the static archiver.
1.3 KiB
1.3 KiB