diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2023-01-20 16:09:42 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2023-01-20 16:09:42 +0100 |
commit | 200ffdccc5aacf3ad5ac79f35b6892b455d781ea (patch) | |
tree | a3f013980aed5e7103901d3460b7b1748b81c173 | |
parent | 611f71c67020eb501cedd24b2b10751fc1188f5e (diff) | |
download | yosys-200ffdccc5aacf3ad5ac79f35b6892b455d781ea.tar.gz yosys-200ffdccc5aacf3ad5ac79f35b6892b455d781ea.tar.bz2 yosys-200ffdccc5aacf3ad5ac79f35b6892b455d781ea.zip |
Call yosys_shutdown to properly cleanup plugins and tcl when expecting error
-rw-r--r-- | kernel/log.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/log.cc b/kernel/log.cc index 0092871f0..75a1ffb45 100644 --- a/kernel/log.cc +++ b/kernel/log.cc @@ -707,6 +707,7 @@ void log_check_expected() if (item.second.current_count == item.second.expected_count) { log_warn_regexes.clear(); log("Expected error pattern '%s' found !!!\n", item.first.c_str()); + yosys_shutdown(); #ifdef EMSCRIPTEN throw 0; #elif defined(_MSC_VER) |