aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/python_wrappers.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 /kernel/python_wrappers.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 'kernel/python_wrappers.cc')
-rw-r--r--kernel/python_wrappers.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/python_wrappers.cc b/kernel/python_wrappers.cc
index af1f80929..2c27ea47f 100644
--- a/kernel/python_wrappers.cc
+++ b/kernel/python_wrappers.cc
@@ -2783,13 +2783,13 @@ namespace YOSYS_PYTHON {
struct Initializer
{
Initializer() {
- if(!Yosys::yosys_already_setup())
- {
+ if(!Yosys::yosys_already_setup())
+ {
Yosys::log_streams.push_back(&std::cout);
Yosys::log_error_stderr = true;
Yosys::yosys_setup();
Yosys::yosys_banner();
- }
+ }
}
Initializer(Initializer const &) {}