diff options
author | Sam Clegg <sbc@chromium.org> | 2024-01-17 15:30:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 15:30:47 -0800 |
commit | 0c3b5ac16daf929ca018ad3cdac08123b4d2bedc (patch) | |
tree | b84bfedae8f616bf7816a2dbf7691597a49eba59 | |
parent | d7ee845700dfbc83116be119a1be91abad15acf1 (diff) | |
download | wabt-0c3b5ac16daf929ca018ad3cdac08123b4d2bedc.tar.gz wabt-0c3b5ac16daf929ca018ad3cdac08123b4d2bedc.tar.bz2 wabt-0c3b5ac16daf929ca018ad3cdac08123b4d2bedc.zip |
Simplify emscripten command line flags. NFC (#2368)
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a4057457..63f971f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -814,15 +814,15 @@ if (EMSCRIPTEN) 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_EXPORTS}\" - -s RESERVED_FUNCTION_POINTERS=10 - -s NO_EXIT_RUNTIME=1 - -s ALLOW_MEMORY_GROWTH=1 - -s MODULARIZE=1 - -s EXPORT_NAME=\"'WabtModule'\" - -s WASM=0 + -sSINGLE_FILE + -sEXPORTED_FUNCTIONS=@${EMSCRIPTEN_EXPORTS} + -sRESERVED_FUNCTION_POINTERS=10 + -sNO_EXIT_RUNTIME=1 + -sALLOW_MEMORY_GROWTH=1 + -sMODULARIZE=1 + -sEXPORT_NAME=WabtModule + -sWASM=0 -Oz ) string(REPLACE ";" " " LIBWABT_LINK_FLAGS_STR "${LIBWABT_LINK_FLAGS}") |