3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-28 06:57:57 +00:00

Added "plugin" command

This commit is contained in:
Clifford Wolf 2014-08-22 13:58:36 +02:00
parent 752650a062
commit a3494fa9ed
6 changed files with 136 additions and 10 deletions

View file

@ -22,6 +22,7 @@
#include <readline/readline.h>
#include <readline/history.h>
#include <dlfcn.h>
#include <unistd.h>
#include <limits.h>
@ -98,6 +99,12 @@ void yosys_shutdown()
yosys_tcl_interp = NULL;
}
#endif
for (auto &it : loaded_plugins)
dlclose(it.second);
loaded_plugins.clear();
loaded_plugin_aliases.clear();
}
RTLIL::IdString new_id(std::string file, int line, std::string func)