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.
pull/8922/head
selsta 11 months ago
parent df9f380671
commit b4491c1072
Signed by untrusted user: selsta
GPG Key ID: 2EA0A99A8B07AE5E

@ -999,6 +999,9 @@ else()
if(APPLE)
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()
set(DEBUG_FLAGS "-g3")

Loading…
Cancel
Save