From eda300c8705cbdb207a280a86c0c08dcab78c5a1 Mon Sep 17 00:00:00 2001 From: benji Date: Sun, 15 Feb 2026 19:10:04 +0100 Subject: [PATCH] default to no multithreading for emscripten --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 758c0c4..727081e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ cmake_dependent_option( ) cmake_dependent_option(BGFX_WITH_WAYLAND "Use Wayland backend." ON "CMAKE_SYSTEM_NAME STREQUAL Linux" OFF) option(BGFX_CUSTOM_TARGETS "Include convenience custom targets." ON) -option(BGFX_CONFIG_MULTITHREADED "Build bgfx with multithreaded configuration" ON) +cmake_dependent_option(BGFX_CONFIG_MULTITHREADED "Build bgfx with multithreaded configuration" ON "NOT CMAKE_SYSTEM_NAME STREQUAL Emscripten" OFF) option(BGFX_CONFIG_RENDERER_WEBGPU "Enable the webgpu renderer" OFF) option(BGFX_CONFIG_DEBUG_ANNOTATION "Enable gfx debug annotations (default: on in debug)" OFF)