diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-10-15 01:18:31 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-10-15 01:18:31 +0200 |
commit | 1fc6208ec05af672c7c6b7973b0eba1295bca5f4 (patch) | |
tree | cc670a0dadca8f6df7a1d24e1f00fa649d40f29a /kernel | |
parent | f65e1c309fbfd0eae719270bfc8b6887c9e05d9e (diff) | |
download | yosys-1fc6208ec05af672c7c6b7973b0eba1295bca5f4.tar.gz yosys-1fc6208ec05af672c7c6b7973b0eba1295bca5f4.tar.bz2 yosys-1fc6208ec05af672c7c6b7973b0eba1295bca5f4.zip |
Check for _YOSYS_ in yosys.h
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/yosys.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h index 83230cbfb..239146d77 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 |