Skip to content

Commit

Permalink
[emscripten] explicit ask emscripten to export callMain with all othe…
Browse files Browse the repository at this point in the history
…r bindings
  • Loading branch information
ololoken committed Jan 6, 2025
1 parent 2459cba commit da968a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dist/fheroes2-ems/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit da968a1

Please sign in to comment.