]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: disable ASAN if libasan is not found 28247/head
authorKefu Chai <kchai@redhat.com>
Mon, 27 May 2019 03:07:12 +0000 (11:07 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 May 2019 03:07:12 +0000 (11:07 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph.in

index da5b891ce4ec0a987f840dc7cffc6f9bcb5e70ac..751c2fdcf5dd5d548226f3563c9b042a81b571c3 100755 (executable)
@@ -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)