-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
8 lines (5 loc) · 1.12 KB
/
build.bat
1
2
3
4
5
6
7
8
@echo OFF
rem ..\Odin\2023_05\odin build src -out:game_comp.wasm -no-threaded-checker -default-to-nil-allocator -disable-assert -no-bounds-check -o:none -debug -target:freestanding_wasm32 -ignore-vs-search -no-crt -no-entry-point -extra-linker-flags:"--import-memory -zstack-size=19200 --initial-memory=65536 --max-memory=65536 --stack-first --lto-O3 --gc-sections"
..\Odin\2023_05\odin build src -out:game_comp.wasm -no-threaded-checker -default-to-nil-allocator -disable-assert -no-bounds-check -o:size -target:freestanding_wasm32 -ignore-vs-search -no-crt -no-entry-point -extra-linker-flags:"--import-memory -zstack-size=14560 --initial-memory=65536 --max-memory=65536 --stack-first --lto-O3 --gc-sections --strip-all"
wasm-opt -Oz --converge --low-memory-unused --zero-filled-memory --const-hoisting --ignore-implicit-traps game_comp.wasm -o game.wasm
rem ..\Odin\2023_05\odin build src -debug -o:size -out:game.wasm -target:freestanding_wasm32 -ignore-vs-search -no-crt -no-entry-point -extra-linker-flags:"--import-memory -zstack-size=19200 --initial-memory=65536 --max-memory=65536 --stack-first --lto-O3 --gc-sections --strip-all"