mirror of
https://github.com/monero-project/monero.git
synced 2025-01-25 12:05:58 +00: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:
parent
df9f380671
commit
b4491c1072
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue