--- 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 #include -#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