summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-15 01:18:31 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-15 01:18:31 +0200
commit1fc6208ec05af672c7c6b7973b0eba1295bca5f4 (patch)
treecc670a0dadca8f6df7a1d24e1f00fa649d40f29a
parentf65e1c309fbfd0eae719270bfc8b6887c9e05d9e (diff)
Check for _YOSYS_ in yosys.h
-rw-r--r--kernel/yosys.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h
index 83230cbf..239146d7 100644
--- a/kernel/yosys.h
+++ b/kernel/yosys.h
@@ -58,6 +58,12 @@
#include <string.h>
#include <stdio.h>
+#ifndef _YOSYS_
+# error It looks like you are trying to build Yosys with the config defines set. \
+ When building Yosys with a custom make system, make sure you set all the \
+ defines the Yosys Makefile would set for your build configuration.
+#endif
+
#ifdef YOSYS_ENABLE_TCL
# include <tcl.h>
#endif