From 4775bb11165d2ecd68de719614528144b7924525 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Fri, 7 Feb 2025 19:28:17 +0100 Subject: fix: allocation to stack instead of heap in cn_slow_hash causing older low end devices to crash --- contrib/depends/toolchain.cmake.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib') diff --git a/contrib/depends/toolchain.cmake.in b/contrib/depends/toolchain.cmake.in index 216741e..4fda443 100644 --- a/contrib/depends/toolchain.cmake.in +++ b/contrib/depends/toolchain.cmake.in @@ -199,5 +199,9 @@ include_directories(@prefix@/include/wownero_seed) add_definitions(-DPOLYSEED_STATIC=ON) add_definitions(-DMOBILE_WALLET_BUILD) +if (ANDROID OR IOS) + add_definitions(-DFORCE_USE_HEAP=1) +endif() + #Create a new global cmake flag that indicates building with depends set (DEPENDS true) \ No newline at end of file -- cgit v1.2.3