mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Various MXE build fixes
This commit is contained in:
parent
31267a1ae8
commit
4df902637a
4 changed files with 30 additions and 15 deletions
|
@ -28,9 +28,9 @@ YOSYS_NAMESPACE_BEGIN
|
|||
std::map<std::string, void*> loaded_plugins;
|
||||
std::map<std::string, std::string> loaded_plugin_aliases;
|
||||
|
||||
#ifdef YOSYS_ENABLE_PLUGINS
|
||||
void load_plugin(std::string filename, std::vector<std::string> aliases)
|
||||
{
|
||||
#ifdef YOSYS_ENABLE_PLUGINS
|
||||
if (filename.find('/') == std::string::npos)
|
||||
filename = "./" + filename;
|
||||
|
||||
|
@ -44,10 +44,13 @@ void load_plugin(std::string filename, std::vector<std::string> aliases)
|
|||
|
||||
for (auto &alias : aliases)
|
||||
loaded_plugin_aliases[alias] = filename;
|
||||
#else
|
||||
log_error("This version of yosys is built without plugin support.\n");
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
void load_plugin(std::string, std::vector<std::string>)
|
||||
{
|
||||
log_error("This version of yosys is built without plugin support.\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
struct PluginPass : public Pass {
|
||||
PluginPass() : Pass("plugin", "load and list loaded plugins") { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue