Skip to content

Commit

Permalink
partial bitcoin#20938: fix linking against -latomic when building for…
Browse files Browse the repository at this point in the history
… riscv

includes:
- 54ce4fa
  • Loading branch information
kwvg committed Jun 25, 2024
1 parent 972b419 commit 78db324
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build-aux/m4/l_atomic.m4
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ m4_define([_CHECK_ATOMIC_testbody], [[
#include <cstdint>
int main() {
std::atomic<bool> lock{true};
std::atomic_exchange(&lock, false);
std::atomic<int64_t> a{};
int64_t v = 5;
Expand Down

0 comments on commit 78db324

Please sign in to comment.