summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyan <cyjan@mrcyjanek.net>2025-02-07 19:29:20 +0100
committerGitHub <noreply@github.com>2025-02-07 19:29:20 +0100
commit09c6d2e5f8ae8e9f4c5efe5b7bfe72911462a32b (patch)
tree67a142f7ed9e8c9e32c19769fc5879ac28cb51cd
parent9301097ff504525070cc0cb915fe2f1bb0670345 (diff)
fix: allocation to stack instead of heap in cn_slow_hash causing (#112)
older low end devices to crash
-rw-r--r--contrib/depends/toolchain.cmake.in4
1 files changed, 4 insertions, 0 deletions
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