diff --git a/cibuild/linkexport.sh b/cibuild/linkexport.sh index 1955549d..3f50e4f8 100644 --- a/cibuild/linkexport.sh +++ b/cibuild/linkexport.sh @@ -1,7 +1,7 @@ echo "============= link export : begin ===============" emcc $EMCC_WEB -fPIC -sMAIN_MODULE=1 -O0 \ -D__PYDK__=1 -DPREFIX=${PGROOT} \ - -sTOTAL_MEMORY=1GB -sSTACK_SIZE=4MB -sALLOW_TABLE_GROWTH -sALLOW_MEMORY_GROWTH -sGLOBAL_BASE=${CMA_MB}MB \ + -sTOTAL_MEMORY=256MB -sSTACK_SIZE=4MB -sALLOW_TABLE_GROWTH -sALLOW_MEMORY_GROWTH -sGLOBAL_BASE=${CMA_MB}MB \ -sERROR_ON_UNDEFINED_SYMBOLS -sASSERTIONS=0 \ -lnodefs.js -lidbfs.js \ -sEXPORTED_RUNTIME_METHODS=FS,setValue,getValue,UTF8ToString,stringToNewUTF8,stringToUTF8OnStack,ccall,cwrap,callMain \ diff --git a/cibuild/linkweb.sh b/cibuild/linkweb.sh index b0807000..866d7c1e 100755 --- a/cibuild/linkweb.sh +++ b/cibuild/linkweb.sh @@ -185,7 +185,7 @@ _________________________________________________________ emcc $EMCC_WEB $LINKER $MODULE \ - -sTOTAL_MEMORY=1GB -sSTACK_SIZE=4MB -sGLOBAL_BASE=${CMA_MB}MB \ + -sTOTAL_MEMORY=256MB -sSTACK_SIZE=4MB -sGLOBAL_BASE=${CMA_MB}MB \ -fPIC -D__PYDK__=1 -DPREFIX=${PGROOT} \ -sALLOW_TABLE_GROWTH -sALLOW_MEMORY_GROWTH -sERROR_ON_UNDEFINED_SYMBOLS -sASSERTIONS=0 \ -lnodefs.js -lidbfs.js \ diff --git a/cibuild/pgbuild.sh b/cibuild/pgbuild.sh index 938dfb24..85f67fa4 100644 --- a/cibuild/pgbuild.sh +++ b/cibuild/pgbuild.sh @@ -117,7 +117,7 @@ END # only required for static initdb EMCC_CFLAGS="-sERROR_ON_UNDEFINED_SYMBOLS=0 ${CC_PGLITE}" - EMCC_CFLAGS="${EMCC_CFLAGS} -sTOTAL_MEMORY=1GB -sSTACK_SIZE=5MB -sALLOW_TABLE_GROWTH -sALLOW_MEMORY_GROWTH -sGLOBAL_BASE=${CMA_MB}MB" + EMCC_CFLAGS="${EMCC_CFLAGS} -sTOTAL_MEMORY=256MB -sSTACK_SIZE=5MB -sALLOW_TABLE_GROWTH -sALLOW_MEMORY_GROWTH -sGLOBAL_BASE=${CMA_MB}MB" EMCC_CFLAGS="${EMCC_CFLAGS} -DPREFIX=${PGROOT}" export EMCC_CFLAGS="${EMCC_CFLAGS} -Wno-macro-redefined -Wno-unused-function"