Update CMakeLists.txt

Flag DEMANGLE_SUPPORT was deprecated in 3.1.54 and removed in 4.0.6. For newer versions of emscripten, the flag must be removed to work.
This commit is contained in:
def-roth 2025-05-22 17:43:49 +02:00 committed by GitHub
parent aee828ac6e
commit 1e49f2f1be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,6 @@ endif()
set(EMSCRIPTEN_LINK_FLAGS "${EMSCRIPTEN_LINK_FLAGS} -s TOTAL_MEMORY=128MB -s WASM_MEM_MAX=1GB -s ALLOW_MEMORY_GROWTH=1")
set(EMSCRIPTEN_LINK_FLAGS "${EMSCRIPTEN_LINK_FLAGS} -s MODULARIZE=1")
set(EMSCRIPTEN_LINK_FLAGS "${EMSCRIPTEN_LINK_FLAGS} -s EXPORT_NAME=\"'cv'\" -s DEMANGLE_SUPPORT=1")
set(EMSCRIPTEN_LINK_FLAGS "${EMSCRIPTEN_LINK_FLAGS} -s FORCE_FILESYSTEM=1 --use-preload-plugins --bind --post-js ${JS_HELPER} ${COMPILE_FLAGS}")
set_target_properties(${the_module} PROPERTIES LINK_FLAGS "${EMSCRIPTEN_LINK_FLAGS}")