From fca1898ddae6736732a1afec29a0db50294edf49 Mon Sep 17 00:00:00 2001 From: Stephan Dollberg Date: Thu, 12 Dec 2024 15:24:38 +0000 Subject: [PATCH] bazel: Enable SEASTAR_DEBUG_SHARED_PTR in debug Adds seastar define to debug builds which enables `ss::(lw)_shared_ptr` owner checks. --- bazel/thirdparty/seastar.BUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bazel/thirdparty/seastar.BUILD b/bazel/thirdparty/seastar.BUILD index aa84d81988a6e..0de73d6f40ceb 100644 --- a/bazel/thirdparty/seastar.BUILD +++ b/bazel/thirdparty/seastar.BUILD @@ -570,7 +570,10 @@ cc_library( ":use_logger_compile_time_fmt": ["SEASTAR_LOGGER_COMPILE_TIME_FMT"], "//conditions:default": [], }) + select({ - ":with_debug": ["SEASTAR_DEBUG"], + ":with_debug": [ + "SEASTAR_DEBUG", + "SEASTAR_DEBUG_SHARED_PTR", + ], "//conditions:default": [], }), includes = [