Skip to content

Commit

Permalink
Added same fix for newer xcode compiler as thirdparty has, found whil…
Browse files Browse the repository at this point in the history
…e checking if the same ipfs error occurs on OSX(It does)
  • Loading branch information
itsafuu committed Feb 6, 2024
1 parent 0aab968 commit 0300e47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/CommonCompilerOptions.CMake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")

if (NOT EXISTS "${CMAKE_TOOLCHAIN_FILE}")
Expand Down

0 comments on commit 0300e47

Please sign in to comment.