Add WASI platform support.
authorwhitequark <whitequark@whitequark.org>
Mon, 11 Nov 2019 09:23:06 +0000 (09:23 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 30 Apr 2020 18:56:25 +0000 (18:56 +0000)
commitb43c282e4e0de53b9323a5d8d85b07bc73324a17
treeab7a0beb69f8f4cb7588128fbe248343665b1d7d
parentbc380b0b56e0fa269a0d5844280cc4419d438d3a
Add WASI platform support.

This includes the following significant changes:
  * Patching ezsat and minisat to disable resource limiting code
    on WASM/WASI, since the POSIX functions they use are unavailable.
  * Adding a new definition, YOSYS_DISABLE_SPAWN, present if platform
    does not support spawning subprocesses (i.e. Emscripten or WASI).
    This definition hides the definition of `run_command()`.
  * Adding a new Makefile flag, DISABLE_SPAWN, present in the same
    condition. This flag disables all passes that require spawning
    subprocesses for their function.
17 files changed:
Makefile
frontends/rpc/Makefile.inc
kernel/driver.cc
kernel/register.cc
kernel/yosys.cc
kernel/yosys.h
libs/ezsat/ezminisat.cc
libs/minisat/00_PATCH_wasm.patch [new file with mode: 0644]
libs/minisat/00_UPDATE.sh
libs/minisat/System.cc
passes/cmds/Makefile.inc
passes/cmds/cover.cc
passes/cmds/show.cc
passes/sat/Makefile.inc
passes/techmap/Makefile.inc
passes/techmap/abc.cc
passes/techmap/abc9_exe.cc