]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: do not build lockdep for Release build 40062/head
authorKefu Chai <kchai@redhat.com>
Fri, 12 Mar 2021 11:39:28 +0000 (19:39 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 13 Mar 2021 03:34:34 +0000 (11:34 +0800)
commit20e3ee4adaf8231d9f834450aad18c567d7aa277
tree16c2f38e227e20a1950c7cfc8f5d4a3ed2e9d768
parent8102981e17d3bb27ca0f40e8f37a496fdb50bb58
cmake: do not build lockdep for Release build

lockdep create large data structures on .bss and on heap for tracking
the locks and their dependencies. but we don't need to pay for this
if lockdep is not enabled.

lockdep helps us to track the lock dependencies related issue on Debug
build. and Release build, this feature hurts the performance and more
importantly, lockdeps is a feature only kicks in when using the
mutex_debug and friends. they are not used in Release build at all.

so, after this change, lockdep is not built in Release build. and
the static variables defined in lockdep.cc are not allocated anymore
in Release build.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/CMakeLists.txt
src/crimson/os/alienstore/CMakeLists.txt
src/test/common/CMakeLists.txt