perf(web): reuse incremental build and status caches
This commit is contained in:
@@ -40,8 +40,10 @@ if [[ -d /dev/shm && -w /dev/shm ]]; then
|
||||
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}"
|
||||
web_build_jobs="$(WEB_BUILD_MEMORY_GIB_PER_JOB=4 WEB_BUILD_JOBS_CAP=16 bash "${web_workspace_root}/tools/web/compute-build-jobs.sh")"
|
||||
export WEB_BUILD_JOBS="${WEB_BUILD_JOBS-${web_build_jobs}}"
|
||||
export CMAKE_BUILD_PARALLEL_LEVEL="${CMAKE_BUILD_PARALLEL_LEVEL-${WEB_BUILD_JOBS}}"
|
||||
export NINJAFLAGS="${NINJAFLAGS--j${WEB_BUILD_JOBS}}"
|
||||
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