Skip to content

Commit

Permalink
explicitly specify emnapiInit in test
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Dec 25, 2024
1 parent a9a0436 commit ecda026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if(IS_EMSCRIPTEN)
"-sMAXIMUM_MEMORY=2147483648"
"-sSAFE_HEAP=1"
"-sMODULARIZE=1"
"-sEXPORTED_RUNTIME_METHODS=['ExitStatus']"
"-sEXPORTED_RUNTIME_METHODS=['emnapiInit','ExitStatus']"
)
elseif(IS_WASI_THREADS)
add_compile_options("-fno-exceptions")
Expand Down Expand Up @@ -317,7 +317,7 @@ target_compile_definitions("runjs_cnrj" PRIVATE "NAPI_EXPERIMENTAL")
if(IS_WASM)
if(IS_EMSCRIPTEN)
add_test("emnapitest" "./emnapitest/binding.c" OFF)
target_link_options("emnapitest" PRIVATE "-sEXPORTED_RUNTIME_METHODS=['emnapiSyncMemory']")
target_link_options("emnapitest" PRIVATE "-sEXPORTED_RUNTIME_METHODS=['emnapiInit','ExitStatus','emnapiSyncMemory']")
else()
add_test("emnapitest" "./emnapitest/binding.c" OFF)
endif()
Expand Down

0 comments on commit ecda026

Please sign in to comment.