]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: Check -flto flags
authorBoris Ranto <branto@redhat.com>
Thu, 5 Aug 2021 06:36:21 +0000 (08:36 +0200)
committerBoris Ranto <branto@redhat.com>
Thu, 5 Aug 2021 13:46:50 +0000 (15:46 +0200)
commit5bcfd5caeee90df18809a6f4c9a2e7e8f7734f8b
treeefd0952bea76881578f86c33392a4d2c87424167
parentf90e26cb4bffbef8c0b00b8774887963232c8b0a
cmake: Check -flto flags

We should check if -flto-partition=none is defined when the compiler
does not support symver attribute and fail the build if it is not.

Fixes: https://tracker.ceph.com/issues/40060
Co-authored-by: Kefu Chai <tchaikov@gmail.com>
Signed-off-by: Boris Ranto <branto@redhat.com>
cmake/modules/CephChecks.cmake