From 73efecca42dbc44200e797e02f8c1e24fcff26ef Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 5 Jun 2025 10:13:28 +0200 Subject: Added two more examples --- 05_callback/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 05_callback/build.sh (limited to '05_callback/build.sh') 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 @@ +#!/bin/sh + +mkdir -p build +emcc -sEXPORTED_FUNCTIONS=_primes_in_range -sMODULARIZE -sEXPORT_NAME=Primes \ + -sEXPORTED_RUNTIME_METHODS=addFunction,UTF8ToString \ + -sALLOW_TABLE_GROWTH \ + -pthread -sPTHREAD_POOL_SIZE=16 \ + -o build/primes.mjs primes.c -- cgit v1.3