Browse Source

[cmake] Use std::atomic on PowerPC inside boost (#1726)

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1804/head
R4SAS 2 years ago
parent
commit
8df4082d6f
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 7
      build/CMakeLists.txt

7
build/CMakeLists.txt

@ -172,6 +172,13 @@ if(WITH_THREADSANITIZER)
endif() endif()
# Enable usage of STD's Atomic instead of Boost's on PowerPC
# For more information refer to https://github.com/PurpleI2P/i2pd/issues/1726#issuecomment-1306335111
if(ARCHITECTURE MATCHES "ppc")
add_definitions(-DBOOST_SP_USE_STD_ATOMIC)
endif()
# libraries # libraries
set(THREADS_PREFER_PTHREAD_FLAG ON) set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED) find_package(Threads REQUIRED)

Loading…
Cancel
Save