From: jiegec Date: Wed, 11 Mar 2020 15:01:04 +0000 (+0800) Subject: Add EXTRA_EXPORTED_RUNTIME_METHODS env for yosysjs X-Git-Tag: working-ls180~762^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26137d8bb70cea1f2de16346e883ec5c43754145;p=yosys.git Add EXTRA_EXPORTED_RUNTIME_METHODS env for yosysjs --- 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)