From 8eba49b6a84dc255ef6597c343d2b45460b5cf53 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 25 Dec 2017 22:31:04 +0100 Subject: [PATCH] emscripten: export _malloc() and _free() --- dist-build/emscripten.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist-build/emscripten.sh b/dist-build/emscripten.sh index a7c8e8f5..d4b09b9d 100755 --- a/dist-build/emscripten.sh +++ b/dist-build/emscripten.sh @@ -54,7 +54,7 @@ else echo exit 1 fi -export JS_EXPORTS_FLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS} -s EXTRA_EXPORTED_RUNTIME_METHODS=[\"Pointer_stringify\"]" +export JS_EXPORTS_FLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS} -s EXTRA_EXPORTED_RUNTIME_METHODS=[\"Pointer_stringify\",\"_malloc\",\"_free\"]" rm -f "$DONE_FILE"