WindEmu/WindWasm/build.sh

7 lines
300 B
Bash
Raw Permalink Normal View History

2019-12-25 23:40:27 +00:00
#!/bin/sh
FLAGS="-O3 -s WASM_OBJECT_FILES=0 -std=c++17"
2019-12-25 23:40:27 +00:00
mkdir -p obj
for i in arm710 emubase etna windermere; do emcc -c $FLAGS -o obj/$i.o ../WindCore/$i.cpp; done
emcc $FLAGS -s TOTAL_MEMORY=78643200 --llvm-lto 1 --preload-file rom/5mx.bin --shell-file shell.html obj/*.o main.cpp -o WindEmu.html