diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cb095f2ed..1250ff754a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -386,6 +386,7 @@ find_package(Threads REQUIRED) # that we prefer the pthread flag; why is that? I don't know. if (PLATFORM_EMSCRIPTEN) add_compile_options($<$:-pthread>) + add_link_options($<$:-pthread>) endif() find_package(RenderDoc MODULE) diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt index 13b00bdebc..ef2e22c5a0 100644 --- a/src/yuzu_cmd/CMakeLists.txt +++ b/src/yuzu_cmd/CMakeLists.txt @@ -78,6 +78,7 @@ endif() if (PLATFORM_EMSCRIPTEN) target_link_options(yuzu-cmd PRIVATE + -sINITIAL_MEMORY=33554432 -sGLOBAL_BASE=16777216 -sPTHREAD_POOL_SIZE_STRICT=0 -sPTHREAD_POOL_SIZE=navigator.hardwareConcurrency)