]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: extract sanitizer detection out
authorKefu Chai <kchai@redhat.com>
Thu, 2 Aug 2018 05:59:31 +0000 (13:59 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 2 Aug 2018 06:43:47 +0000 (14:43 +0800)
commita7326ee0f4cf5fae5db28c13e8728bc1b66bcac5
tree6c1d49cdf8bf2dcc8c472416d289a0808158252a
parentbbd95765cc0a4d4f66d5767a08b687d7369a1e0e
cmake: extract sanitizer detection out

also, we don't need to pass '-lasan' or '-ltsan' to linker. it's
suggested to use the "-fsanitize=${sanitizer}".

please note, this module is compatible with the one used in seastar on
purpose, as seastar is included in ceph using add_subdirectory(), and it
in turn add its own cmake modules directory using list(APPEND ...), so
cmake/modules/FindSantitizers.cmake is prefered over
src/seastar/cmake/FindSantitizers.cmake.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
cmake/modules/FindSanitizers.cmake [new file with mode: 0644]