From 33aa490cd6c18474f83ddd2b5f91ffc5c42a34d9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 9 Oct 2024 19:00:21 +0200 Subject: Make --disable-emscripten-proxy-to-pthread configurable ...as is convenient for some experiments Change-Id: I74aedb38ecc0f7b5a0d913799f649dce77dc7bba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174753 Reviewed-by: Stephan Bergmann Tested-by: Jenkins --- solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'solenv/gbuild') diff --git a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk b/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk index 2b55b4ba1218..4951bb1cae03 100644 --- a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk +++ b/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk @@ -17,6 +17,10 @@ gb_EMSCRIPTEN_LDFLAGS := $(gb_EMSCRIPTEN_CPPFLAGS) # Initial memory size gb_EMSCRIPTEN_LDFLAGS += -s TOTAL_MEMORY=1GB +ifeq ($(ENABLE_EMSCRIPTEN_PROXY_TO_PTHREAD),) +gb_EMSCRIPTEN_LDFLAGS += -sPTHREAD_POOL_SIZE=6 +endif + # Double the main thread stack size, but keep the default value for other threads: gb_EMSCRIPTEN_LDFLAGS += -sSTACK_SIZE=131072 -sDEFAULT_PTHREAD_STACK_SIZE=65536 -- cgit v1.2.3