aboutsummaryrefslogtreecommitdiff
path: root/06_storage/build.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-06-06 09:13:54 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-06-06 09:13:54 +0200
commitab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0 (patch)
tree76be6a8b1596ea1e74dbf7085b85214c2c83e69a /06_storage/build.sh
parent961c3470d7e9bdf5efbe0509f586be75d7052d8b (diff)
downloademscripten-tutorial-ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0.tar.gz
emscripten-tutorial-ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0.zip
Added example 6
Diffstat (limited to '')
-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