diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/log.cc | 1 | ||||
-rw-r--r-- | kernel/yosys.cc | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/kernel/log.cc b/kernel/log.cc index 72181ebe8..2f8ce9e8c 100644 --- a/kernel/log.cc +++ b/kernel/log.cc @@ -695,7 +695,6 @@ void log_check_expected() log_warn_regexes.clear(); log("Expected error pattern '%s' found !!!\n", item.second.pattern.c_str()); #ifdef EMSCRIPTEN - log_files = backup_log_files; throw 0; #elif defined(_MSC_VER) _exit(0); 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; |