]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph.in: only preload asan library if it is enabled
authorKefu Chai <kchai@redhat.com>
Tue, 26 Mar 2019 10:11:58 +0000 (18:11 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Nov 2019 15:02:02 +0000 (23:02 +0800)
commit12409f8e8a6f8ee4db326c0a46969b9e81c60c5a
tree6fd7998f74f32ce7eaf2f60039ac52b27cd14b7f
parent74cc775490d569325ef8fadcc924b94657bab8ae
ceph.in: only preload asan library if it is enabled

my ceph cli hung when i build ceph using `CMAKE_BUILD_TYPE=RelWithDebInfo` and
`WITH_SEASTAR=ON`. because in that case, seastar detects for Sanitize flags
support of the compiler, but it does not pull in the build flags to enable
sanitizers. while `ceph` cli still preloaded the `asan_lib_path` because
`ASAN_LIBRARY` was set. this is not right, as we should enable ASAN at
runtime only if we enable it at compile-time.

so, in this change, we preload the ASAN library when `CMAKE_BUILD_TYPE`
is `Debug` and `WITH_SEASTAR=ON`, or `WITH_ASAN=ON`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 62a4019b2e00abcf5a5b989a96e6e0dd37911361)
src/ceph.in