wasm: Export required functions for Embind
This change prepares Qt for upgrading to Emscripten 3.1.70. There is some weird behavior on emscripten which requires these flags: https://github.com/emscripten-core/emscripten/issues/21844 Task-number: QTBUG-131279 Change-Id: I1b2a95241d6055fbcc4c6c451b62da1d3d3b3e7e Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Even Oscar Andersen <even.oscar.andersen@qt.io>
This commit is contained in:
parent
2f7d87555b
commit
5d6f12e6ec
@ -147,6 +147,11 @@ function(_qt_internal_add_wasm_extra_exported_methods target)
|
||||
"SHELL:-s EXPORTED_RUNTIME_METHODS=${wasm_default_exported_methods}"
|
||||
)
|
||||
endif()
|
||||
# TODO: Remove these flags when LLVM got fixed - QTBUG-131279
|
||||
if(QT_FEATURE_thread)
|
||||
target_link_options("${target}" PRIVATE
|
||||
"SHELL:-s EXPORTED_FUNCTIONS=_main,__embind_initialize_bindings")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(_qt_internal_set_wasm_export_name target)
|
||||
|
Loading…
x
Reference in New Issue
Block a user