Skip to content

Commit fd09540

Browse files
authored
fix: missing _malloc in emulator-emscripten (#1420)
1 parent 645d26a commit fd09540

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

emulator/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ endif()
4747
if (USE_EMSCRIPTEN)
4848
add_executable(emulator-emscripten ${EMULATOR_EMSCRIPTEN_SOURCE})
4949
target_link_libraries(emulator-emscripten PUBLIC emulator)
50-
target_link_options(emulator-emscripten PRIVATE -sEXPORTED_RUNTIME_METHODS=_malloc,free,UTF8ToString,stringToUTF8,allocate,ALLOC_NORMAL,lengthBytesUTF8)
51-
target_link_options(emulator-emscripten PRIVATE -sEXPORTED_FUNCTIONS=_emulate,_free,_run_get_method,_create_emulator,_destroy_emulator,_emulate_with_emulator,_version)
50+
target_link_options(emulator-emscripten PRIVATE -sEXPORTED_RUNTIME_METHODS=UTF8ToString,stringToUTF8,allocate,ALLOC_NORMAL,lengthBytesUTF8)
51+
target_link_options(emulator-emscripten PRIVATE -sEXPORTED_FUNCTIONS=_emulate,_free,_malloc,_run_get_method,_create_emulator,_destroy_emulator,_emulate_with_emulator,_version)
5252
target_link_options(emulator-emscripten PRIVATE -sEXPORT_NAME=EmulatorModule)
5353
target_link_options(emulator-emscripten PRIVATE -sERROR_ON_UNDEFINED_SYMBOLS=0)
5454
target_link_options(emulator-emscripten PRIVATE -Oz)

0 commit comments

Comments
 (0)