diff options
author | Alon Zakai <azakai@google.com> | 2024-02-20 13:10:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 13:10:48 -0800 |
commit | d0fa7102b5be83be6d0670a5662013bf5f8d1b64 (patch) | |
tree | b3d02fa1a97a8d9ca900edcb2c7a8d3074db0a80 /CMakeLists.txt | |
parent | c0cdd267492956e9789148c8e478c467dd59d67b (diff) | |
download | binaryen-d0fa7102b5be83be6d0670a5662013bf5f8d1b64.tar.gz binaryen-d0fa7102b5be83be6d0670a5662013bf5f8d1b64.tar.bz2 binaryen-d0fa7102b5be83be6d0670a5662013bf5f8d1b64.zip |
JS Bindings: Use stringToUTF8OnStack instead of deprecated allocateUTF8OnStack (#6324)
This avoids a warning on recent Emscripten.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1836d9556..def330b27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -462,7 +462,7 @@ if(EMSCRIPTEN) target_link_libraries(binaryen_wasm "-sEXPORT_NAME=Binaryen") target_link_libraries(binaryen_wasm "-sNODERAWFS=0") target_link_libraries(binaryen_wasm "-sEXPORT_ES6") - target_link_libraries(binaryen_wasm "-sEXPORTED_RUNTIME_METHODS=allocateUTF8OnStack,stringToAscii") + target_link_libraries(binaryen_wasm "-sEXPORTED_RUNTIME_METHODS=stringToUTF8OnStack,stringToAscii") target_link_libraries(binaryen_wasm "-sEXPORTED_FUNCTIONS=_malloc,_free") target_link_libraries(binaryen_wasm "--post-js=${CMAKE_CURRENT_SOURCE_DIR}/src/js/binaryen.js-post.js") target_link_libraries(binaryen_wasm "-msign-ext") @@ -500,7 +500,7 @@ if(EMSCRIPTEN) else() target_link_libraries(binaryen_js "-sEXPORT_ES6=1") endif() - target_link_libraries(binaryen_js "-sEXPORTED_RUNTIME_METHODS=allocateUTF8OnStack,stringToAscii") + target_link_libraries(binaryen_js "-sEXPORTED_RUNTIME_METHODS=stringToUTF8OnStack,stringToAscii") target_link_libraries(binaryen_js "-sEXPORTED_FUNCTIONS=_malloc,_free") target_link_libraries(binaryen_js "--post-js=${CMAKE_CURRENT_SOURCE_DIR}/src/js/binaryen.js-post.js") # js_of_ocaml needs a specified variable with special comment to provide the library to consumers |