Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bfc9375

Browse files
committedJan 9, 2024
Merge #71: cmake: Backport check whether -latomic needed
80b1ab6 fixup! cmake: Check system symbols (Hennadii Stepanov) Pull request description: This PR mirrors changes from bitcoin#29177. ACKs for top commit: TheCharlatan: ACK 80b1ab6 Tree-SHA512: b29f0a4872f1093af7157767fff77ff5dcc42a45f0f3cbe62c5e53a054890e969ee8bcdca6cbbc93e04dbde49203500f6f657223a7d56a68bbb6f1c54a7e57a6
2 parents d128e8a + 80b1ab6 commit bfc9375

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎cmake/module/TestAppendRequiredLibraries.cmake

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function(test_append_socket_library target)
3333
endif()
3434
endfunction()
3535

36-
# Clang prior to version 15, when building for 32-bit,
36+
# Clang, when building for 32-bit,
3737
# and linking against libstdc++, requires linking with
3838
# -latomic if using the C++ atomic library.
3939
# Can be tested with: clang++ test.cpp -m32
@@ -53,6 +53,8 @@ function(test_append_atomic_library target)
5353
5454
std::atomic<std::chrono::seconds> t{0s};
5555
t.store(2s);
56+
auto t1 = t.load();
57+
t.compare_exchange_strong(t1, 3s);
5658
5759
std::atomic<int64_t> a{};
5860

0 commit comments

Comments
 (0)
Please sign in to comment.