From c8bab543cd7e423d5c5a5960e7f906f482d19b5a Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 21 Dec 2022 12:53:59 -0800 Subject: Use flat format for emscriptnen exported function list. NFC (#2108) --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index d374b54b..9072e46d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -751,12 +751,12 @@ if (EMSCRIPTEN) set_target_properties(libwabtjs PROPERTIES OUTPUT_NAME libwabt) set(WABT_POST_JS ${WABT_SOURCE_DIR}/src/wabt.post.js) - set(EMSCRIPTEN_EXPORTED_JSON ${WABT_SOURCE_DIR}/src/emscripten-exported.json) + set(EMSCRIPTEN_EXPORTS ${WABT_SOURCE_DIR}/src/emscripten-exports.txt) set(LIBWABT_LINK_FLAGS -s SINGLE_FILE --post-js ${WABT_POST_JS} - -s EXPORTED_FUNCTIONS=\"@${EMSCRIPTEN_EXPORTED_JSON}\" + -s EXPORTED_FUNCTIONS=\"@${EMSCRIPTEN_EXPORTS}\" -s RESERVED_FUNCTION_POINTERS=10 -s NO_EXIT_RUNTIME=1 -s ALLOW_MEMORY_GROWTH=1 @@ -770,7 +770,7 @@ if (EMSCRIPTEN) set_target_properties(libwabtjs PROPERTIES LINK_FLAGS "${LIBWABT_LINK_FLAGS_STR}" - LINK_DEPENDS "${WABT_POST_JS};${EMSCRIPTEN_EXPORTED_JSON}" + LINK_DEPENDS "${WABT_POST_JS};${EMSCRIPTEN_EXPORTS}" ) endif () -- cgit v1.2.3