aboutsummaryrefslogtreecommitdiff
path: root/06_storage/build.sh
diff options
context:
space:
mode:
Diffstat (limited to '06_storage/build.sh')
-rwxr-xr-x06_storage/build.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/06_storage/build.sh b/06_storage/build.sh
new file mode 100755
index 0000000..a477cc5
--- /dev/null
+++ b/06_storage/build.sh
@@ -0,0 +1,9 @@
1#!/bin/sh
2
3mkdir -p build
4emcc -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

Generated with cgit - Back to sebastiano.tronto.net