0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-10 14:51:37 -05:00

🐛 Set a different cache directory for emcsdk

This commit is contained in:
Andrey Antukh 2024-11-14 14:29:19 +01:00
parent 97072b112c
commit e54f213b3f

View file

@ -1,18 +1,18 @@
#!/usr/bin/env bash
if [ "$NODE_ENV" = "production" ]; then
export _BUILD_MODE="release";
else
export _BUILD_MODE=${1:-debug};
fi
export PATH="/usr/local/cargo/bin:$PATH";
export EMSDK_QUIET=1
export EMCC_CFLAGS="--no-entry -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s MAX_WEBGL_VERSION=2 -s MODULARIZE=1 -s EXPORT_NAME=createRustSkiaModule -s EXPORTED_RUNTIME_METHODS=GL -s ENVIRONMENT=web -s EXPORT_ES6=1 -sMODULARIZE"
source /usr/local/emsdk/emsdk_env.sh;
source /usr/local/cargo/env
export EM_CACHE="/tmp/emsdk_cache";
set -x