From 42b03da2b120633309abe440b5b4e1608e03dc89 Mon Sep 17 00:00:00 2001 From: Samuel Nicholas Date: Sun, 19 Oct 2025 15:21:24 +1030 Subject: [PATCH] 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. --- cmake/web.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/web.cmake b/cmake/web.cmake index 819aa89af..65283b60c 100644 --- a/cmake/web.cmake +++ b/cmake/web.cmake @@ -21,7 +21,7 @@ function(web_generate) target_compile_options( godot-cpp PUBLIC # - -sSIDE_MODULE + -sSIDE_MODULE=1 -sSUPPORT_LONGJMP=wasm $<${THREADS_ENABLED}:-sUSE_PTHREADS=1> ) @@ -33,6 +33,7 @@ function(web_generate) -sSUPPORT_LONGJMP=wasm -fvisibility=hidden -shared + $<${THREADS_ENABLED}:-sUSE_PTHREADS=1> ) common_compiler_flags()