ceph/0008-cmake-enable-sw64-architecture.patch
liuqinfei 6e5f3cec37 fix conflicts among multiple processor architectures
Signed-off-by: liuqinfei <lucas.liuqinfei@huawei.com>
2023-08-21 21:04:38 +08:00

12 lines
513 B
Diff

--- ceph-ori/cmake/modules/CheckCxxAtomic.cmake 2023-08-21 20:20:31.009088704 +0800
+++ ceph-16.2.7/cmake/modules/CheckCxxAtomic.cmake 2023-08-21 20:20:53.629126721 +0800
@@ -11,7 +11,7 @@ function(check_cxx_atomics var)
#include <atomic>
#include <cstdint>
-#if __s390x__
+#if defined(__s390x__) || defined(__sw_64__)
// Boost needs 16-byte atomics for tagged pointers.
// These are implemented via inline instructions on the platform
// if 16-byte alignment can be proven, and are delegated to libatomic