mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
Make Boost use std::atomic internally
This commit is contained in:
parent
987a6c0956
commit
394ccf76ad
1 changed files with 4 additions and 0 deletions
|
@ -676,6 +676,10 @@ AX_BOOST_PROGRAM_OPTIONS
|
||||||
AX_BOOST_THREAD
|
AX_BOOST_THREAD
|
||||||
AX_BOOST_CHRONO
|
AX_BOOST_CHRONO
|
||||||
|
|
||||||
|
dnl Boost 1.56 through 1.62 allow using std::atomic instead of its own atomic
|
||||||
|
dnl counter implementations. In 1.63 and later the std::atomic approach is default.
|
||||||
|
m4_pattern_allow(DBOOST_AC_USE_STD_ATOMIC) dnl otherwise it's treated like a macro
|
||||||
|
BOOST_CPPFLAGS="-DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC $BOOST_CPPFLAGS"
|
||||||
|
|
||||||
if test x$use_reduce_exports = xyes; then
|
if test x$use_reduce_exports = xyes; then
|
||||||
AC_MSG_CHECKING([for working boost reduced exports])
|
AC_MSG_CHECKING([for working boost reduced exports])
|
||||||
|
|
Loading…
Add table
Reference in a new issue