aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjiegec <noc@jiegec.ac.cn>2020-03-11 23:01:04 +0800
committerjiegec <noc@jiegec.ac.cn>2020-03-11 23:01:04 +0800
commit26137d8bb70cea1f2de16346e883ec5c43754145 (patch)
tree6827be0f104a347e031a38cd0737bfba547e8e3c /Makefile
parent7b679eecb334e1f52bdf5878118ba2631835b8b3 (diff)
downloadyosys-26137d8bb70cea1f2de16346e883ec5c43754145.tar.gz
yosys-26137d8bb70cea1f2de16346e883ec5c43754145.tar.bz2
yosys-26137d8bb70cea1f2de16346e883ec5c43754145.zip
Add EXTRA_EXPORTED_RUNTIME_METHODS env for yosysjs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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)