mirror of
https://github.com/monero-project/monero.git
synced 2025-12-12 15:50:28 -08:00
cmake: set -fno-aligned-allocation on macOS ARM
We set a deployment target that is lower than 10.14, which means we have to disable aligned allocation otherwise compilation fails.
This commit is contained in:
@@ -999,6 +999,9 @@ else()
|
|||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default -DGTEST_HAS_TR1_TUPLE=0")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default -DGTEST_HAS_TR1_TUPLE=0")
|
||||||
|
if(ARM)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-aligned-allocation")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(DEBUG_FLAGS "-g3")
|
set(DEBUG_FLAGS "-g3")
|
||||||
|
|||||||
Reference in New Issue
Block a user