aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds/plugin.cc
diff options
context:
space:
mode:
authorBenedikt Tutzer <e1225461@student.tuwien.ac.at>2018-08-20 16:04:43 +0200
committerBenedikt Tutzer <e1225461@student.tuwien.ac.at>2018-08-20 16:04:43 +0200
commit95d65971f3f114adb8b62a9d29bc0829467e3d81 (patch)
tree8dd1ff0da0379d74a816295dd32d2b4f58293df8 /passes/cmds/plugin.cc
parentd87c7df27f8268ab849d3f9d84c4b000f83b44e2 (diff)
downloadyosys-95d65971f3f114adb8b62a9d29bc0829467e3d81.tar.gz
yosys-95d65971f3f114adb8b62a9d29bc0829467e3d81.tar.bz2
yosys-95d65971f3f114adb8b62a9d29bc0829467e3d81.zip
added some checks if python is enabled to make sure everything compiles if python is disabled in the makefile
Diffstat (limited to 'passes/cmds/plugin.cc')
-rw-r--r--passes/cmds/plugin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/passes/cmds/plugin.cc b/passes/cmds/plugin.cc
index 1a39140d4..a889397e2 100644
--- a/passes/cmds/plugin.cc
+++ b/passes/cmds/plugin.cc
@@ -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"))