Ceph source include boost package. Boost not implement atomic functions for RISC-V. Set riscv to the ceph autodect arches.
12 lines
567 B
Diff
12 lines
567 B
Diff
--- a/cmake/modules/CheckCxxAtomic.cmake 2023-08-23 14:08:23.304911386 +0800
|
|
+++ b/cmake/modules/CheckCxxAtomic.cmake 2023-08-23 14:09:10.994614880 +0800
|
|
@@ -11,7 +11,7 @@
|
|
#include <atomic>
|
|
#include <cstdint>
|
|
|
|
-#if defined(__s390x__) || defined(__sw_64__) || defined(__loongarch64)
|
|
+#if defined(__s390x__) || defined(__sw_64__) || defined(__loongarch64) || defined(__riscv)
|
|
// 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
|