diff options
author | jiegec <noc@jiegec.ac.cn> | 2020-03-11 22:08:02 +0800 |
---|---|---|
committer | jiegec <noc@jiegec.ac.cn> | 2020-03-11 22:09:24 +0800 |
commit | 7b679eecb334e1f52bdf5878118ba2631835b8b3 (patch) | |
tree | 8fedf9639bc9d79f42d67502bf779a962658775e /kernel/yosys.cc | |
parent | dd8ebf7873eadab9c6d0fba8c4ed25eb88acbb8f (diff) | |
download | yosys-7b679eecb334e1f52bdf5878118ba2631835b8b3.tar.gz yosys-7b679eecb334e1f52bdf5878118ba2631835b8b3.tar.bz2 yosys-7b679eecb334e1f52bdf5878118ba2631835b8b3.zip |
Fix compilation for emcc
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r-- | kernel/yosys.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 8190d8902..7694fc9b6 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -341,7 +341,11 @@ int run_command(const std::string &command, std::function<void(const std::string if (!process_line) return system(command.c_str()); +#ifdef EMSCRIPTEN + FILE *f = nullptr; +#else FILE *f = popen(command.c_str(), "r"); +#endif if (f == nullptr) return -1; |