aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Castro <lcbc.lucascastro@gmail.com>2020-07-09 13:50:26 -0300
committerGitHub <noreply@github.com>2020-07-09 18:50:26 +0200
commit68babb2ae4cf86e099f28ada45f7e86b37405a4c (patch)
treef96707d5ccc6a45e31fe7fa7ccede76b7c10b400
parent32d2cc8c285682c3d9613ea0f116679c816b7ac1 (diff)
downloadyosys-68babb2ae4cf86e099f28ada45f7e86b37405a4c.tar.gz
yosys-68babb2ae4cf86e099f28ada45f7e86b37405a4c.tar.bz2
yosys-68babb2ae4cf86e099f28ada45f7e86b37405a4c.zip
Fix issue #2251 (#2252)
* Fix #2251 - YosysJS ReferenceError: _memset is not defined. Add '_memset' in emcc EXPORTED_FUNCTIONS in Makefile.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b9c3d14eb..ec8b38c48 100644
--- a/Makefile
+++ b/Makefile
@@ -247,7 +247,7 @@ CXXFLAGS := -std=c++11 $(filter-out -fPIC -ggdb,$(CXXFLAGS))
ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H -DABC_MEMALIGN=8"
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 EXPORTED_FUNCTIONS="['_main','_run','_prompt','_errmsg','_memset']"
EMCCFLAGS += -s TOTAL_MEMORY=134217728
EMCCFLAGS += -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]'
# https://github.com/kripken/emscripten/blob/master/src/settings.js