build.sh (323B)
1 #!/bin/sh 2 3 mkdir -p build 4 emcc -sEXPORTED_FUNCTIONS=_primes_in_range -sMODULARIZE -sEXPORT_NAME=Primes \ 5 -pthread -sPTHREAD_POOL_SIZE=16 \ 6 -sEXPORTED_RUNTIME_METHODS=addFunction,UTF8ToString \ 7 -sALLOW_TABLE_GROWTH \ 8 -lidbfs.js --pre-js init_idbfs.js -sINITIAL_MEMORY=272629760 \ 9 -o build/primes.mjs primes.c storage.c