feat(web): batch modifier reader coverage
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-03 11:11:20 +08:00
parent 2542f82785
commit 61b27cdebe
72 changed files with 23097 additions and 208 deletions

View File

@@ -29,7 +29,19 @@ fi
export WEB_EMSCRIPTEN_VERSION
export EM_CONFIG="${web_workspace_root}/.emscripten-web"
export EM_CACHE="${web_workspace_root}/.emcache"
# Prefer RAM-backed compiler caches on Linux hosts with enough tmpfs space.
# The cache only contains derived Emscripten artifacts; evidence and source
# outputs remain in the repository. Callers can override either path.
if [[ -d /dev/shm && -w /dev/shm ]]; then
web_ram_cache_root="${WEB_RAM_CACHE_ROOT-/dev/shm/blender-wasm-${UID}}"
mkdir -p "${web_ram_cache_root}/emcache" "${web_ram_cache_root}/tmp"
export EM_CACHE="${EM_CACHE-${web_ram_cache_root}/emcache}"
export TMPDIR="${TMPDIR-${web_ram_cache_root}/tmp}"
else
export EM_CACHE="${EM_CACHE-${web_workspace_root}/.emcache}"
fi
export CMAKE_BUILD_PARALLEL_LEVEL="${CMAKE_BUILD_PARALLEL_LEVEL-8}"
export NINJAFLAGS="${NINJAFLAGS--j8}"
export WEB_EMSCRIPTEN_CFLAGS="-sENVIRONMENT=web,worker -sMODULARIZE=1 -sEXPORT_ES6=1"
export WEB_EMSCRIPTEN_LDFLAGS="-sALLOW_MEMORY_GROWTH=1 -sFILESYSTEM=1"