From 47e51121da2a29f32e18ad5ea202381932a4bbe4 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 22 Apr 2023 23:06:55 +0100 Subject: [PATCH] Adapt to the most recent version of emsdk. (#362) --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ef9a04e44..07e01efc0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -43,6 +43,9 @@ if(BUILD_BLS_TESTS) FetchContent_MakeAvailable(Catch2) find_package(Threads REQUIRED) add_executable(runtest test.cpp) + if(EMSCRIPTEN) + target_link_options(runtest PRIVATE "-sEXPORTED_FUNCTIONS=_malloc") + endif() target_link_libraries(runtest PRIVATE bls