js: stop using EXTRA_EXPORTED_RUNTIME_METHODS

Current Emscripten has deprecated it in favour of
EXPORTED_RUNTIME_METHODS, and using that avoids generating warnings.
This commit is contained in:
Ben Harris
2023-04-03 22:49:27 +01:00
parent 4de5d20368
commit 4fcc1ea601

View File

@ -42,7 +42,7 @@ string(JOIN "," emcc_export_string ${emcc_export_list})
set(CMAKE_C_LINK_FLAGS "\
-s ALLOW_MEMORY_GROWTH=1 \
-s EXPORTED_FUNCTIONS='[${emcc_export_string}]' \
-s EXTRA_EXPORTED_RUNTIME_METHODS='[cwrap]' \
-s EXPORTED_RUNTIME_METHODS='[cwrap]' \
-s STRICT_JS=1")
if(WASM)
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -s WASM=1")