From: Clifford Wolf Date: Tue, 14 Oct 2014 23:18:31 +0000 (+0200) Subject: Check for _YOSYS_ in yosys.h X-Git-Tag: yosys-0.4~52^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1fc6208ec05af672c7c6b7973b0eba1295bca5f4;p=yosys.git Check for _YOSYS_ in yosys.h --- 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 #include +#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 #endif