:: commit 6560313e24996f0e7461e282dcc2a7b4d6ef82be

Kamila Szewczyk <27734421+kspalaiologos@users.noreply.github.com> — 2022-10-29 08:44

parents: 343c7587bb

export the UTF8ToString method in emscripten build

diff --git a/PORTING.md b/PORTING.md
index 7f0111f..d1f3060 100644
--- a/PORTING.md
+++ b/PORTING.md
@@ -30,7 +30,7 @@ Assuming that asm.js code is desired:
 ```
 emconfigure ./configure --without-pthread --host none-none-none CC=emcc "CFLAGS=-O2 -DBZIP3_VISIBLE=\"__attribute__((used))\""
 make src/bzip3-libbz3.o
-emcc -O2 src/bzip3-libbz3.o -o libbz3.js -sWASM=0 --memory-init-file 0 -sFILESYSTEM=0 -sALLOW_MEMORY_GROWTH
+emcc -O2 src/bzip3-libbz3.o -o libbz3.js -sWASM=0 --memory-init-file 0 -sFILESYSTEM=0 -sALLOW_MEMORY_GROWTH -s 'EXPORTED_RUNTIME_METHODS=["UTF8ToString"]'
 ```
 
 asm.js code size: 118KB (v1.1.7), 34K gzipped.
tab: 248 wrap: offon