diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-06 09:13:54 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-06 09:13:54 +0200 |
| commit | ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0 (patch) | |
| tree | 76be6a8b1596ea1e74dbf7085b85214c2c83e69a /06_storage/build.sh | |
| parent | 961c3470d7e9bdf5efbe0509f586be75d7052d8b (diff) | |
| download | emscripten-tutorial-ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0.tar.gz emscripten-tutorial-ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0.zip | |
Added example 6
Diffstat (limited to '06_storage/build.sh')
| -rwxr-xr-x | 06_storage/build.sh | 9 |
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 | |||
| 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 | ||
