From da968a1385db472e4976b172b961bfc2da9601af Mon Sep 17 00:00:00 2001 From: Roman Turchin Date: Mon, 6 Jan 2025 14:34:12 -0500 Subject: [PATCH] [emscripten] explicit ask emscripten to export callMain with all other bindings --- src/dist/fheroes2-ems/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dist/fheroes2-ems/Makefile b/src/dist/fheroes2-ems/Makefile index 428a99174d..3ce24a6cc1 100644 --- a/src/dist/fheroes2-ems/Makefile +++ b/src/dist/fheroes2-ems/Makefile @@ -42,6 +42,7 @@ fheroes2.js: $(notdir $(patsubst %.cpp, %.o, $(SOURCES))) $(DEPLIBS) fheroes2.module.js: $(notdir $(patsubst %.cpp, %.o, $(SOURCES))) $(DEPLIBS) $(CXX) -o $@ $^ $(LIBS) $(LDFLAGS) \ -sMODULARIZE \ + -sEXPORTED_RUNTIME_METHODS=callMain \ -sEXPORT_ALL \ -sEXPORT_NAME=fheroes2