]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: prevent ASAN_OPTIONS from detect_odr_violation
authorKefu Chai <tchaikov@gmail.com>
Sun, 24 Mar 2024 13:40:28 +0000 (21:40 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 26 Mar 2024 23:35:28 +0000 (07:35 +0800)
commita837f494b5a82555313e7424adfaee96910a4673
tree5d0067c1dba4f7b0452395049ff76afb876e37da
parentf68248944815acbf5fb08ef66f36da6d5baef824
cmake: prevent ASAN_OPTIONS from detect_odr_violation

turns out we have multiple copies of following symbol defined by rbd executable:
```
AddressSanitizer: odr-violation: global 'ceph::buffer::list::always_empty_bptr' at /home/jenkins-build/build/workspace/ceph-pull-requests/src/common/buffer.cc:1267:34
```
before addressing it. let's disable this warning.

Refs https://tracker.ceph.com/issues/65098

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
cmake/modules/AddCephTest.cmake