From 26137d8bb70cea1f2de16346e883ec5c43754145 Mon Sep 17 00:00:00 2001 From: jiegec Date: Wed, 11 Mar 2020 23:01:04 +0800 Subject: [PATCH] Add EXTRA_EXPORTED_RUNTIME_METHODS env for yosysjs --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 237731bae..0eb42e0d6 100644 --- a/Makefile +++ b/Makefile @@ -238,6 +238,7 @@ EMCCFLAGS := -Os -Wno-warn-absolute-paths EMCCFLAGS += --memory-init-file 0 --embed-file share -s NO_EXIT_RUNTIME=1 EMCCFLAGS += -s EXPORTED_FUNCTIONS="['_main','_run','_prompt','_errmsg']" EMCCFLAGS += -s TOTAL_MEMORY=134217728 +EMCCFLAGS += -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' # https://github.com/kripken/emscripten/blob/master/src/settings.js CXXFLAGS += $(EMCCFLAGS) LDFLAGS += $(EMCCFLAGS) -- 2.30.2