projects
/
ldk-java
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1f10a84
)
[TS] Configure memory setup in linker to not insta-OOM
author
Matt Corallo
<git@bluematt.me>
Sat, 8 Jan 2022 23:57:00 +0000
(23:57 +0000)
committer
Matt Corallo
<git@bluematt.me>
Mon, 10 Jan 2022 05:27:22 +0000
(
05:27
+0000)
genbindings.sh
patch
|
blob
|
history
diff --git
a/genbindings.sh
b/genbindings.sh
index bb14f62fcf206c903c341b748d9e5a30d487b4d2..25c8ffbe91c0b4774a4fb4051158ce33e703ecaa 100755
(executable)
--- a/
genbindings.sh
+++ b/
genbindings.sh
@@
-199,7
+199,7
@@
else
cat ts/bindings.c.body >> ts/bindings.c
echo "Building TS bindings..."
cat ts/bindings.c.body >> ts/bindings.c
echo "Building TS bindings..."
- COMPILE="$COMMON_COMPILE -flto -Wl,--no-entry -nostdlib --target=wasm32-wasi"
+ COMPILE="$COMMON_COMPILE -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
"
# We only need malloc and assert/abort, but for now just use WASI for those:
#EXTRA_LINK=/usr/lib/wasm32-wasi/libc.a
EXTRA_LINK=
# We only need malloc and assert/abort, but for now just use WASI for those:
#EXTRA_LINK=/usr/lib/wasm32-wasi/libc.a
EXTRA_LINK=