File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ if(EMSCRIPTEN)
555555 else ()
556556 target_link_libraries (binaryen_js PRIVATE "-sEXPORT_ES6" )
557557 endif ()
558- target_link_libraries (binaryen_js PRIVATE "-sEXPORTED_RUNTIME_METHODS=stringToUTF8OnStack,stringToAscii" )
558+ target_link_libraries (binaryen_js PRIVATE "-sEXPORTED_RUNTIME_METHODS=stringToUTF8OnStack,stringToAscii,getExceptionMessage " )
559559 target_link_libraries (binaryen_js PRIVATE "-sEXPORTED_FUNCTIONS=_malloc,_free,__i32_load" )
560560 target_link_libraries (binaryen_js PRIVATE "--post-js=${CMAKE_CURRENT_SOURCE_DIR} /src/js/binaryen.js-post.js" )
561561 target_link_libraries (binaryen_js PRIVATE optimized "--closure=1" )
@@ -568,8 +568,6 @@ if(EMSCRIPTEN)
568568 # Don't exit the process on a fatal error, instead throw, so that JS can
569569 # catch.
570570 add_compile_flag ("-DTHROW_ON_FATAL" )
571- # Add support for printing C++ exceptions from JS.
572- target_link_libraries (binaryen_js PRIVATE "-sEXPORT_EXCEPTION_HANDLING_HELPERS" )
573571 install (TARGETS binaryen_js DESTINATION ${CMAKE_INSTALL_BINDIR} )
574572endif ()
575573
You can’t perform that action at this time.
0 commit comments