Add EXTRA_EXPORTED_RUNTIME_METHODS env for yosysjs
authorjiegec <noc@jiegec.ac.cn>
Wed, 11 Mar 2020 15:01:04 +0000 (23:01 +0800)
committerjiegec <noc@jiegec.ac.cn>
Wed, 11 Mar 2020 15:01:04 +0000 (23:01 +0800)
Makefile

index 237731baec1f847a2b3417a476d4558ba868b4eb..0eb42e0d6f14191d731a6035186fa440399bddb7 100644 (file)
--- 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)