aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2014-09-19 21:47:24 -0500
committerDavid Barksdale <amatus@amatus.name>2014-09-19 21:47:24 -0500
commit4e124ac2cde9d64524318771a6f9a6453761a378 (patch)
treebe3ec05ba6024486c02984bc5dc8caaaf3a5c544
parent3e182aa2417e0d215fdc53e45f1dde2ce1564fee (diff)
Set ALLOW_MEMORY_GROWTH
These services were throwing the "Cannot enlarge memory arrays" error.
-rw-r--r--gnunet-build/packages/gnunet/gnunet/Buildrules4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnunet-build/packages/gnunet/gnunet/Buildrules b/gnunet-build/packages/gnunet/gnunet/Buildrules
index 2d04a35..b0fbc38 100644
--- a/gnunet-build/packages/gnunet/gnunet/Buildrules
+++ b/gnunet-build/packages/gnunet/gnunet/Buildrules
@@ -160,7 +160,7 @@ pkg_compile() {
emcc -fno-strict-aliasing -Wall \
-O2 \
-s DLOPEN_SUPPORT=1 -s MAIN_MODULE=1 \
- -s TOTAL_MEMORY=33554432 \
+ -s ALLOW_MEMORY_GROWTH=1 \
-s EXPORTED_FUNCTIONS=@ats.exports \
"-I${SYSROOT}/usr/include" "-L${SYSROOT}/usr/lib" \
-o "${S}/src/ats/gnunet-service-ats.js" \
@@ -291,6 +291,7 @@ pkg_compile() {
emcc -fno-strict-aliasing -Wall \
-O2 \
-s DLOPEN_SUPPORT=1 -s MAIN_MODULE=1 \
+ -s ALLOW_MEMORY_GROWTH=1 \
-s EXPORTED_FUNCTIONS=@dht.exports \
"-I${SYSROOT}/usr/include" "-L${SYSROOT}/usr/lib" \
-o "${S}/src/dht/gnunet-service-dht.js" \
@@ -430,6 +431,7 @@ pkg_compile() {
emcc -fno-strict-aliasing -Wall \
-O2 \
-s DLOPEN_SUPPORT=1 -s MAIN_MODULE=1 \
+ -s ALLOW_MEMORY_GROWTH=1 \
-s EXPORTED_FUNCTIONS=@fs.exports \
"-I${SYSROOT}/usr/include" "-L${SYSROOT}/usr/lib" \
-o "${S}/src/fs/gnunet-service-fs.js" \