From 3d9c9cf5b0f7867fdcc04ca928e15b44c3ccb243 Mon Sep 17 00:00:00 2001 From: MoustaphaSaad Date: Fri, 31 May 2024 18:45:50 +0300 Subject: fix bn_unit bn_unit uses more memory than Emscripten default initial heap size. ALLOW_MEMORY_GROWTH linker option is passed to fix the OOM error --- tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5c7edba..f52a17b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -252,6 +252,7 @@ add_platform_test(bn_to_string bn_to_string) # bn_unit add_executable(bn_unit bn_unit.c) target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS}) +set_target_properties(bn_unit PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH") add_platform_test(bn_unit bn_unit) # bn_word -- cgit v1.2.3-55-g6feb