diff options
author | Sam Clegg <sbc@chromium.org> | 2022-12-21 12:53:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 12:53:59 -0800 |
commit | c8bab543cd7e423d5c5a5960e7f906f482d19b5a (patch) | |
tree | 4ac1e6e7d0fca631f79cb066910d67c3e4a9e022 /CMakeLists.txt | |
parent | 4dd8b6ac322c93db20e8c40867c2cd6bb454589a (diff) | |
download | wabt-c8bab543cd7e423d5c5a5960e7f906f482d19b5a.tar.gz wabt-c8bab543cd7e423d5c5a5960e7f906f482d19b5a.tar.bz2 wabt-c8bab543cd7e423d5c5a5960e7f906f482d19b5a.zip |
Use flat format for emscriptnen exported function list. NFC (#2108)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
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 () |