]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph.in: do not preload libasan if it is not found
authorKefu Chai <kchai@redhat.com>
Wed, 29 May 2019 01:45:57 +0000 (09:45 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Nov 2019 15:02:24 +0000 (23:02 +0800)
commit652ffb14dda273e25053226775f77e2e81f7cfec
tree3052caa643919c4582ba192ca619537699086c5d
parent19b5ed701340e106299136ab12471aea68961f92
ceph.in: do not preload libasan if it is not found

before this change, `asan_lib_path` could be `None` when we check it to
see if it ends with `NOTFOUND`. this happens if WITH_SEASTAR=OFF or
WITH_ASAN=OFF, as in that case, find_package(Sanitizers) is not called,
hence `ASAN_LIBRARY` won't be set.

in this change, libasan is only preloaded if

- (WITH_SEASTAR=ON and CMAKE_BUILD_TYPE=Debug and ASAN_LIBRARY is found)
  or
- (WITH_ASAN)

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