]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: disable ASAN if libasan is not found
authorKefu Chai <kchai@redhat.com>
Mon, 27 May 2019 03:07:12 +0000 (11:07 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Nov 2019 15:02:13 +0000 (23:02 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 6b0336f4936afbbc1a7f95cdef40cc9bf12bc46c)

src/ceph.in

index 6ebeb4a988c05bb499a9e4ef1469563349d7a98f..b2e70529193e8879f38d9302942713e86de4a600 100755 (executable)
@@ -125,7 +125,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)