diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-05 10:13:28 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-05 10:13:28 +0200 |
| commit | 73efecca42dbc44200e797e02f8c1e24fcff26ef (patch) | |
| tree | 46969fed9d5c09a4164257dace56a71cad9092ab /05_callback/build.sh | |
| parent | 2a8e7aeeef99161b6f0378ac14e297c23ca6227b (diff) | |
| download | emscripten-tutorial-73efecca42dbc44200e797e02f8c1e24fcff26ef.tar.gz emscripten-tutorial-73efecca42dbc44200e797e02f8c1e24fcff26ef.zip | |
Added two more examples
Diffstat (limited to '')
| -rwxr-xr-x | 05_callback/build.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/05_callback/build.sh b/05_callback/build.sh new file mode 100755 index 0000000..998ebd1 --- /dev/null +++ b/05_callback/build.sh | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | mkdir -p build | ||
| 4 | emcc -sEXPORTED_FUNCTIONS=_primes_in_range -sMODULARIZE -sEXPORT_NAME=Primes \ | ||
| 5 | -sEXPORTED_RUNTIME_METHODS=addFunction,UTF8ToString \ | ||
| 6 | -sALLOW_TABLE_GROWTH \ | ||
| 7 | -pthread -sPTHREAD_POOL_SIZE=16 \ | ||
| 8 | -o build/primes.mjs primes.c | ||
