]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake/modules/FindSanitizers: prefer libasan.6
authorKefu Chai <kchai@redhat.com>
Mon, 24 May 2021 08:18:27 +0000 (16:18 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 24 May 2021 08:19:37 +0000 (16:19 +0800)
libasan.6 is shipped as part of GCC-11, so prefer it over older versions

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/FindSanitizers.cmake

index fafd48124051e31af04b72fc0bad7b3654645bc7..41483d5a6596dcc5c05519afe126050a3b2540e5 100644 (file)
@@ -34,6 +34,7 @@ if(Sanitizers_address_COMPILE_OPTIONS OR Sanitizers_leak_COMPILE_OPTIONS)
   # ASAN_LIBRARY will be read by ceph.in to preload the asan library
   find_library(ASAN_LIBRARY
     NAMES
+      libasan.so.6
       libasan.so.5
       libasan.so.4
       libasan.so.3)