partial bitcoin#20938: fix linking against -latomic when building for riscv

includes:
- 54ce4fac80689621dcbcc76169b2b00b179ee743
This commit is contained in:
Kittywhiskers Van Gogh 2021-01-15 10:54:07 +08:00
parent 972b4198d7
commit 78db324970
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -14,6 +14,9 @@ m4_define([_CHECK_ATOMIC_testbody], [[
#include <cstdint> #include <cstdint>
int main() { int main() {
std::atomic<bool> lock{true};
std::atomic_exchange(&lock, false);
std::atomic<int64_t> a{}; std::atomic<int64_t> a{};
int64_t v = 5; int64_t v = 5;