mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-31 00:13:18 +00:00
added some checks if python is enabled to make sure everything compiles if python is disabled in the makefile
This commit is contained in:
parent
d87c7df27f
commit
95d65971f3
5 changed files with 14 additions and 9 deletions
|
@ -44,7 +44,11 @@ void load_plugin(std::string filename, std::vector<std::string> aliases)
|
|||
if (filename.find('/') == std::string::npos)
|
||||
filename = "./" + filename;
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
if (!loaded_plugins.count(filename) && !loaded_python_plugins.count(filename)) {
|
||||
#else
|
||||
if (!loaded_plugins.count(filename)) {
|
||||
#endif
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
if(boost::algorithm::ends_with(filename, ".py"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue