From: Kefu Chai Date: Mon, 27 May 2019 03:07:12 +0000 (+0800) Subject: ceph.in: disable ASAN if libasan is not found X-Git-Tag: v15.1.0~2637^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6b0336f4936afbbc1a7f95cdef40cc9bf12bc46c;p=ceph.git ceph.in: disable ASAN if libasan is not found Signed-off-by: Kefu Chai --- diff --git a/src/ceph.in b/src/ceph.in index da5b891ce4ec..751c2fdcf5dd 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -129,7 +129,9 @@ if os.path.exists(os.path.join(MYPDIR, "CMakeCache.txt")) \ pythonlib_path = os.path.join(lib_path, "cython_modules", get_pythonlib_dir()) - if with_seastar and build_type == 'Debug': + if asan_lib_path.endswith('NOTFOUND'): + with_asan = False + elif with_seastar and build_type == 'Debug': with_asan = True respawn_in_path(lib_path, pybind_path, pythonlib_path, asan_lib_path if with_asan else None)