shithub: puzzles

Download patch

ref: 4fcc1ea6012dbb25aeb94397d81f364fab81a58d
parent: 4de5d20368d4b2ca4f0851eafa900cd0c9a3c691
author: Ben Harris <bjh21@bjh21.me.uk>
date: Mon Apr 3 18:49:27 EDT 2023

js: stop using EXTRA_EXPORTED_RUNTIME_METHODS

Current Emscripten has deprecated it in favour of
EXPORTED_RUNTIME_METHODS, and using that avoids generating warnings.

--- a/cmake/platforms/emscripten.cmake
+++ b/cmake/platforms/emscripten.cmake
@@ -42,7 +42,7 @@
 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")