Further speed improvements

- Store Emscripten cache inside node_modules/.em_cache. Docker image ships without LTO libs, so Emscripten has to rebuild stdlibs on every build otherwise.
 - Merge webp_enc + webp_dec build scripts. Core libwebp library is same in both cases, so there's no point in storing and building two copies of it.
This commit is contained in:
Ingvar Stepanyan
2020-05-11 22:19:28 +01:00
committed by Ingvar Stepanyan
parent 1542bfb7fd
commit de543b3206
22 changed files with 26 additions and 1228 deletions

View File

@@ -2,6 +2,7 @@
set -e
export EM_CACHE="${PWD}/node_modules/.em_cache"
export OPTIMIZE="-Os -flto --llvm-lto 1"
export LDFLAGS="${OPTIMIZE}"
export CFLAGS="${OPTIMIZE}"