From: Xiubo Li Date: Thu, 5 Aug 2021 03:55:06 +0000 (+0800) Subject: common: do not compile condition_variable_debug in none debug mode X-Git-Tag: v17.1.0~994^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=98ed4dcb9fc0f94aa7465f5ceac2599d58d860d6;p=ceph.git common: do not compile condition_variable_debug in none debug mode Signed-off-by: Xiubo Li --- diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 1272130eb442..3bf28659e1c6 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -61,7 +61,6 @@ set(common_srcs code_environment.cc common_init.cc compat.cc - condition_variable_debug.cc config.cc config_values.cc dout.cc @@ -112,6 +111,7 @@ if(WITH_CEPH_DEBUG_MUTEX) list(APPEND common_srcs lockdep.cc mutex_debug.cc + condition_variable_debug.cc shared_mutex_debug.cc) endif() diff --git a/src/crimson/os/alienstore/CMakeLists.txt b/src/crimson/os/alienstore/CMakeLists.txt index 7c7ceee7160b..b685b94b54f1 100644 --- a/src/crimson/os/alienstore/CMakeLists.txt +++ b/src/crimson/os/alienstore/CMakeLists.txt @@ -10,7 +10,6 @@ set(crimson_alien_common_srcs ${PROJECT_SOURCE_DIR}/src/common/blkdev.cc ${PROJECT_SOURCE_DIR}/src/common/ceph_context.cc ${PROJECT_SOURCE_DIR}/src/common/ceph_crypto.cc - ${PROJECT_SOURCE_DIR}/src/common/condition_variable_debug.cc ${PROJECT_SOURCE_DIR}/src/common/cmdparse.cc ${PROJECT_SOURCE_DIR}/src/common/Finisher.cc ${PROJECT_SOURCE_DIR}/src/common/HeartbeatMap.cc @@ -32,6 +31,7 @@ if(WITH_CEPH_DEBUG_MUTEX) list(APPEND crimson_alien_common_srcs ${PROJECT_SOURCE_DIR}/src/common/lockdep.cc ${PROJECT_SOURCE_DIR}/src/common/mutex_debug.cc + ${PROJECT_SOURCE_DIR}/src/common/condition_variable_debug.cc ${PROJECT_SOURCE_DIR}/src/common/shared_mutex_debug.cc) endif() add_library(crimson-alien-common STATIC