diff options
author | MoustaphaSaad <moustapha.saad.abdelhamed@gmail.com> | 2024-06-01 23:20:35 +0300 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-06-19 14:06:09 +0200 |
commit | 165582f970c8466cacc3877aa68c5fea8187f56b (patch) | |
tree | bcfa4d0d7c78a8731361ada5125db94555600935 | |
parent | 64d11fcf11b70edb48f75f55942e8a4c7856bf7a (diff) | |
download | portable-165582f970c8466cacc3877aa68c5fea8187f56b.tar.gz portable-165582f970c8466cacc3877aa68c5fea8187f56b.tar.bz2 portable-165582f970c8466cacc3877aa68c5fea8187f56b.zip |
wrap bn_unit ALLOW_MEMORY_GROWTH in if(EMSCRIPTEN)
-rw-r--r-- | tests/CMakeLists.txt | 4 |
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 |
253 | add_executable(bn_unit bn_unit.c) | 253 | add_executable(bn_unit bn_unit.c) |
254 | target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS}) | 254 | target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS}) |
255 | set_target_properties(bn_unit PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH") | 255 | if(EMSCRIPTEN) |
256 | set_target_properties(bn_unit PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH") | ||
257 | endif() | ||
256 | add_platform_test(bn_unit bn_unit) | 258 | add_platform_test(bn_unit bn_unit) |
257 | 259 | ||
258 | # bn_word | 260 | # bn_word |