Force abc to be linked statically and without threads in emscripten
authorRobert Ou <rqou@robertou.com>
Sat, 31 Mar 2018 21:50:21 +0000 (14:50 -0700)
committerRobert Ou <rqou@robertou.com>
Sat, 19 May 2018 05:53:47 +0000 (22:53 -0700)
Makefile

index b664cafc4f023d3b79b0511e01ca5cd28202d149..1a17bb857211f756f715708a9d334a604c2cf5a1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -178,6 +178,11 @@ EXE = .js
 TARGETS := $(filter-out yosys-config,$(TARGETS))
 EXTRA_TARGETS += yosysjs-$(YOSYS_VER).zip
 
+ifeq ($(ENABLE_ABC),1)
+LINK_ABC := 1
+DISABLE_ABC_THREADS := 1
+endif
+
 viz.js:
        wget -O viz.js.part https://github.com/mdaines/viz.js/releases/download/0.0.3/viz.js
        mv viz.js.part viz.js