diff options
author | selsta <selsta@sent.at> | 2023-06-29 22:53:07 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2023-10-26 04:02:27 +0200 |
commit | b4491c1072b7a3e09c4d64041be16a311743e00c (patch) | |
tree | 24a144c2ca60cfaae0e034152a6e73641435dd4a | |
parent | cmake: set BOOST_NO_AUTO_PTR to fix c++17 compilation (diff) | |
download | monero-b4491c1072b7a3e09c4d64041be16a311743e00c.tar.xz |
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.
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e5f5b48c..99baba2ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") |