Skip to content

Commit

Permalink
doc: update docs for CHECK_ATOMIC macro
Browse files Browse the repository at this point in the history
Clarify that supported versions of GCC are not affected, and that Clang
prior to version 15 still requires the explicit -latomic linking, when
compiling for 32-bit.
  • Loading branch information
fanquake committed Nov 2, 2023
1 parent 023418a commit ebc7063
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-aux/m4/l_atomic.m4
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ dnl permitted in any medium without royalty provided the copyright notice
dnl and this notice are preserved. This file is offered as-is, without any
dnl warranty.

# Some versions of gcc/libstdc++ require linking with -latomic if
# using the C++ atomic library.
# Clang prior to version 15, when building for 32-bit,
# and linking against libstdc++, requires linking with
# -latomic if using the C++ atomic library.
# Can be tested with: clang++ test.cpp -m32
#
# Sourced from http://bugs.debian.org/797228

Expand Down

0 comments on commit ebc7063

Please sign in to comment.