Skip to content

Commit 7116073

Browse files
authored
Remove use of deprecated emscripten setting: EXPORT_EXCEPTION_HANDLING_HELPERS (WebAssembly#8507)
See emscripten-core/emscripten#26499
1 parent 132f7e8 commit 7116073

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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})
574572
endif()
575573

0 commit comments

Comments
 (0)