Skip to content

Commit 6255157

Browse files
DimitryAndricldionne
authored andcommitted
[libc++] Re-enable std::pair trivial copy constructor for FreeBSD >= 14
After many years of using the really old std::pair ABI which did not yet have a trivial copy constructor, FreeBSD 14 and later will finally get rid of it. Only use the old ABI for FreeBSD 13 and earlier. Note: on the FreeBSD side, we will bump our libc++.so version for this, and keep an old compatibility library in a separate package. Differential Revision: https://reviews.llvm.org/D126462
1 parent f72d41b commit 6255157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
# endif
165165
// Feature macros for disabling pre ABI v1 features. All of these options
166166
// are deprecated.
167-
# if defined(__FreeBSD__)
167+
# if defined(__FreeBSD__) && __FreeBSD__ < 14
168168
# define _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR
169169
# endif
170170
// For XCOFF linkers, we have problems if we see a weak hidden version of a symbol

0 commit comments

Comments
 (0)