aboutsummaryrefslogtreecommitdiff
path: root/03_threads/build.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-06-04 11:55:34 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-06-04 11:55:34 +0200
commit2a8e7aeeef99161b6f0378ac14e297c23ca6227b (patch)
treed3ab195eabf4d06cad8b305756e14d4b138eae63 /03_threads/build.sh
downloademscripten-tutorial-2a8e7aeeef99161b6f0378ac14e297c23ca6227b.tar.gz
emscripten-tutorial-2a8e7aeeef99161b6f0378ac14e297c23ca6227b.zip
First 4 examples
Diffstat (limited to '')
-rwxr-xr-x03_threads/build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/03_threads/build.sh b/03_threads/build.sh
new file mode 100755
index 0000000..2f08909
--- /dev/null
+++ b/03_threads/build.sh
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3mkdir -p build
4emcc -sEXPORTED_FUNCTIONS=_primes_in_range -sMODULARIZE -sEXPORT_NAME=Primes \
5 -pthread -sPTHREAD_POOL_SIZE=16 \
6 -o build/primes.mjs primes.c

Generated with cgit - Back to sebastiano.tronto.net