aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/yosys.h')
-rw-r--r--kernel/yosys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h
index 6ed0f8b20..9f5f056a5 100644
--- a/kernel/yosys.h
+++ b/kernel/yosys.h
@@ -66,7 +66,9 @@
#include <stdio.h>
#include <limits.h>
+#ifdef WITH_PYTHON
#include <Python.h>
+#endif
#ifndef _YOSYS_
# error It looks like you are trying to build Yosys without the config defines set. \