diff --git a/interpreters/toywasm/Makefile b/interpreters/toywasm/Makefile index e1cabb32a0..d6278e2680 100644 --- a/interpreters/toywasm/Makefile +++ b/interpreters/toywasm/Makefile @@ -74,11 +74,16 @@ CSRCS += wasi_fdtable.c # TOYWASM_ENABLE_WASI_THREADS CSRCS += wasi_threads.c +# TOYWASM_ENABLE_DYLD +CSRCS += dyld.c +CSRCS += dyld_plt.c + CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/include CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/lib CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/libwasi +CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/libdyld -TOYWASM_VERSION = 99468253ca11c9b8df444e3e23865b5030f6af69 +TOYWASM_VERSION = 12b9e518cd18c9fee09a521afa96eb15cd11edac TOYWASM_UNPACK = toywasm TOYWASM_TARBALL = $(TOYWASM_VERSION).zip TOYWASM_URL_BASE = https://github.com/yamt/toywasm/archive/ @@ -87,6 +92,7 @@ TOYWASM_URL = $(TOYWASM_URL_BASE)/$(TOYWASM_TARBALL) VPATH += $(TOYWASM_UNPACK)/cli VPATH += $(TOYWASM_UNPACK)/lib VPATH += $(TOYWASM_UNPACK)/libwasi +VPATH += $(TOYWASM_UNPACK)/libdyld VPATH += src $(TOYWASM_TARBALL): diff --git a/interpreters/toywasm/regen.sh b/interpreters/toywasm/regen.sh index 361a3bdcb6..7789d169f5 100755 --- a/interpreters/toywasm/regen.sh +++ b/interpreters/toywasm/regen.sh @@ -25,6 +25,7 @@ cmake -B ${BUILDDIR} \ -DTOYWASM_ENABLE_WASM_TAILCALL=ON \ -DTOYWASM_ENABLE_WASM_THREADS=ON \ -DTOYWASM_ENABLE_WASI_THREADS=ON \ +-DTOYWASM_ENABLE_DYLD=ON \ ${DIR} for fn in \