Skip to content

Commit 0c281cc

Browse files
committed
[TS] Remove maximum memory limit
`NetworkGraph` now pre-allocates the appropriate size, which causes our tests to use a bit more than 1GB in memory, so we simply turn off the limit.
1 parent 005e3ff commit 0c281cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genbindings.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ elif [ "$2" = "wasm" ]; then
261261
cat ts/bindings.c.body >> ts/bindings.c
262262

263263
echo "Building TS bindings..."
264-
COMPILE="$COMMON_COMPILE $COMMON_CC -flto -Wl,--no-entry -nostdlib --target=wasm32-wasi -Wl,-z -Wl,stack-size=$((8*1024*1024)) -Wl,--initial-memory=$((16*1024*1024)) -Wl,--max-memory=$((1024*1024*1024)) -Wl,--global-base=4096"
264+
COMPILE="$COMMON_COMPILE $COMMON_CC -flto -Wl,--no-entry -nostdlib --target=wasm32-wasi -Wl,-z -Wl,stack-size=$((8*1024*1024)) -Wl,--initial-memory=$((16*1024*1024)) -Wl,--global-base=4096"
265265
# We only need malloc and assert/abort, but for now just use WASI for those:
266266
EXTRA_LINK=/usr/lib/wasm32-wasi/libc.a
267267
[ "$3" != "false" ] && COMPILE="$COMPILE -Wl,-wrap,calloc -Wl,-wrap,realloc -Wl,-wrap,reallocarray -Wl,-wrap,malloc -Wl,-wrap,aligned_alloc -Wl,-wrap,free"

0 commit comments

Comments
 (0)