From 6b0336f4936afbbc1a7f95cdef40cc9bf12bc46c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 27 May 2019 11:07:12 +0800 Subject: [PATCH] ceph.in: disable ASAN if libasan is not found Signed-off-by: Kefu Chai --- src/ceph.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ceph.in b/src/ceph.in index da5b891ce4ec0..751c2fdcf5dd5 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) -- 2.39.5