From 217a3c95a55b54573cda808abdeed7d406437a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 19 Sep 2022 10:25:52 +0800 Subject: The main function is run first, it calls JS which will later call WASM back. --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 3bc28cb..8bfd9ed 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ bin_PROGRAMS = index.js index_js_SOURCES = pages/index.c -index_js_LDFLAGS = -s EXTRA_EXPORTED_RUNTIME_METHODS=[cwrap] \ - -s EXPORTED_FUNCTIONS=[_index_getproducts] \ +index_js_LDFLAGS = -s EXPORTED_RUNTIME_METHODS=[cwrap] \ + -s EXPORTED_FUNCTIONS=[_main,_index_getproducts] \ -s FETCH -- cgit v1.2.3