mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-03 18:09:13 +03:00
CMake: Fix missing -sUSE_PTHREADS=1 in web build
- add -sUSE_PTHREADS=1 to link flags - add =1 to sSIDE_MODULE=1 in compile flags to match scons.
This commit is contained in:
@@ -21,7 +21,7 @@ function(web_generate)
|
|||||||
target_compile_options(
|
target_compile_options(
|
||||||
godot-cpp
|
godot-cpp
|
||||||
PUBLIC #
|
PUBLIC #
|
||||||
-sSIDE_MODULE
|
-sSIDE_MODULE=1
|
||||||
-sSUPPORT_LONGJMP=wasm
|
-sSUPPORT_LONGJMP=wasm
|
||||||
$<${THREADS_ENABLED}:-sUSE_PTHREADS=1>
|
$<${THREADS_ENABLED}:-sUSE_PTHREADS=1>
|
||||||
)
|
)
|
||||||
@@ -33,6 +33,7 @@ function(web_generate)
|
|||||||
-sSUPPORT_LONGJMP=wasm
|
-sSUPPORT_LONGJMP=wasm
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-shared
|
-shared
|
||||||
|
$<${THREADS_ENABLED}:-sUSE_PTHREADS=1>
|
||||||
)
|
)
|
||||||
|
|
||||||
common_compiler_flags()
|
common_compiler_flags()
|
||||||
|
|||||||
Reference in New Issue
Block a user