Skip to content

Commit

Permalink
slow-hash: use NO_AES & FORCE_USE_HEAP when building on M1 Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
stoffu committed Dec 20, 2022
1 parent e1f3ef1 commit 120d602
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,10 @@ if (ANDROID OR IOS)
endif()
endif()

# M1 Mac seems to behave oddly
if (APPLE AND ARM)
add_definitions(-DNO_AES)
add_definitions(-DFORCE_USE_HEAP)
endif()


0 comments on commit 120d602

Please sign in to comment.