Skip to content

Commit

Permalink
fixed build for gcc 8-9
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Sep 23, 2024
1 parent 189d717 commit 816771d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ if(WITH_THREADSANITIZER)
endif()
endif()

if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0) # gcc 8-9
list(APPEND CMAKE_REQUIRED_LIBRARIES "stdc++fs")
endif()

# Use std::atomic instead of GCC builtins on macOS PowerPC:
# For more information refer to: https://github.com/PurpleI2P/i2pd/issues/1726#issuecomment-1306335111
# This has been fixed in Boost 1.81, nevertheless we retain the setting for the sake of compatibility.
Expand Down

0 comments on commit 816771d

Please sign in to comment.