feat(web): batch modifier reader coverage
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user