]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: pass Sanitizers flags to linker for linking .so
authorKefu Chai <kchai@redhat.com>
Mon, 22 Oct 2018 04:42:10 +0000 (12:42 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 22 Oct 2018 06:40:03 +0000 (14:40 +0800)
commitb605210b9749be68728bf8fb9226786a88d24067
treec92aebabab4ee107b8a2183a336a0624a2cdd020
parent38e7686a37373e993210b0c6554d52e281d95c19
cmake: pass Sanitizers flags to linker for linking .so

see
https://github.com/google/sanitizers/wiki/AddressSanitizer#using-addresssanitizer

to be specific,

> In order to use AddressSanitizer you will need to compile and link your
> program using `clang` with the `-fsanitize=address` switch.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt