Check for _YOSYS_ in yosys.h

This commit is contained in:
Clifford Wolf 2014-10-15 01:18:31 +02:00
parent f65e1c309f
commit 1fc6208ec0
1 changed files with 6 additions and 0 deletions

View File

@ -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