projects
/
ceph.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4294844
)
Fix CheckCxxAtomic to detect more accurately
author
Eric Long
<i@hack3r.moe>
Wed, 4 Dec 2024 05:46:17 +0000
(06:46 +0100)
committer
Daniel Baumann
<daniel@debian.org>
Wed, 4 Dec 2024 05:46:17 +0000
(06:46 +0100)
Last-Update: 2022-08-30
Some platforms like riscv64 does not have full support for atomic primitives,
yet passes the test. Adding operator++ fixes this issue.
Gbp-Pq: Name fix-CheckCxxAtomic-riscv64.patch
cmake/modules/CheckCxxAtomic.cmake
patch
|
blob
|
history
diff --git
a/cmake/modules/CheckCxxAtomic.cmake
b/cmake/modules/CheckCxxAtomic.cmake
index 833977b758b24fc6748a622595386e0970cf5012..5510193a6d253ce6635fddeba5add26531a91439 100644
(file)
--- a/
cmake/modules/CheckCxxAtomic.cmake
+++ b/
cmake/modules/CheckCxxAtomic.cmake
@@
-32,7
+32,7
@@
int main() {
std::atomic<uint16_t> w2;
std::atomic<uint32_t> w4;
std::atomic<uint64_t> w8;
- return
w1 + w2 + w4 +
w8;
+ return
++w1 + ++w2 + ++w4 + ++
w8;
}
" ${var})
endfunction(check_cxx_atomics)