26 lines
916 B
Diff
26 lines
916 B
Diff
From 4f6828fc2b7d29557e80ebce6a31a7aa0a1b3e17 Mon Sep 17 00:00:00 2001
|
|
From: Wenlong Zhang <zhangwenlong@loongson.cn>
|
|
Date: Thu, 12 Jan 2023 16:17:54 +0800
|
|
Subject: [PATCH] add atomic library for loongarch64
|
|
|
|
---
|
|
cmake/modules/CheckCxxAtomic.cmake | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/cmake/modules/CheckCxxAtomic.cmake b/cmake/modules/CheckCxxAtomic.cmake
|
|
index 0b06d5ee4..a2a2a3bfa 100644
|
|
--- a/cmake/modules/CheckCxxAtomic.cmake
|
|
+++ b/cmake/modules/CheckCxxAtomic.cmake
|
|
@@ -11,7 +11,7 @@ function(check_cxx_atomics var)
|
|
#include <atomic>
|
|
#include <cstdint>
|
|
|
|
-#if defined(__s390x__) || defined(__sw_64__)
|
|
+#if defined(__s390x__) || defined(__sw_64__) || defined(__loongarch64)
|
|
// 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
|
|
--
|
|
2.33.0
|
|
|