aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoustaphaSaad <moustapha.saad.abdelhamed@gmail.com>2024-06-01 23:20:35 +0300
committerTheo Buehler <tb@openbsd.org>2024-06-19 14:06:09 +0200
commit165582f970c8466cacc3877aa68c5fea8187f56b (patch)
treebcfa4d0d7c78a8731361ada5125db94555600935
parent64d11fcf11b70edb48f75f55942e8a4c7856bf7a (diff)
downloadportable-165582f970c8466cacc3877aa68c5fea8187f56b.tar.gz
portable-165582f970c8466cacc3877aa68c5fea8187f56b.tar.bz2
portable-165582f970c8466cacc3877aa68c5fea8187f56b.zip
wrap bn_unit ALLOW_MEMORY_GROWTH in if(EMSCRIPTEN)
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index b475655..ae19e3b 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -252,7 +252,9 @@ add_platform_test(bn_to_string bn_to_string)
252# bn_unit 252# bn_unit
253add_executable(bn_unit bn_unit.c) 253add_executable(bn_unit bn_unit.c)
254target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS}) 254target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS})
255set_target_properties(bn_unit PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH") 255if(EMSCRIPTEN)
256 set_target_properties(bn_unit PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH")
257endif()
256add_platform_test(bn_unit bn_unit) 258add_platform_test(bn_unit bn_unit)
257 259
258# bn_word 260# bn_word