Skip to content

Commit

Permalink
Simplify emscripten command line flags. NFC (#2368)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Jan 17, 2024
1 parent d7ee845 commit 0c3b5ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 0c3b5ac

Please sign in to comment.