Skip to content

Commit 80b1ab6

Browse files
committed
fixup! cmake: Check system symbols
Backport changes from the master branch.
1 parent d128e8a commit 80b1ab6

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)