shithub: moonfish

Download patch

ref: 8ee605dd7ec02c669cfaeaf5300867249f3e232a
parent: 719f2caa37eaecaa233fe45fcb4ac990d1d9126f
author: zamfofex <zamfofex@twdb.moe>
date: Tue Jan 30 23:20:44 EST 2024

fix Wasm build

--- a/.build.yml
+++ b/.build.yml
@@ -20,7 +20,7 @@
       cd moonfish
       make LDFLAGS=-static
       make LDFLAGS=-static CC=x86_64-w64-mingw32-gcc moonfish.exe
-      make LDFLAGS=-static CC='clang --target=wasm32-wasi-threads --sysroot=/usr/share/wasi-sysroot' moonfish.wasm
+      make LDFLAGS='-static -Wl,--max-memory=1073741824' CC='clang --target=wasm32-wasi-threads --sysroot=/usr/share/wasi-sysroot' moonfish.wasm
       ./minify.sh
   - deploy: |
       set +x
--