mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-18 03:29:17 +00:00
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:
committed by
Ingvar Stepanyan
parent
1542bfb7fd
commit
de543b3206
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user