mirror of https://github.com/YosysHQ/yosys.git
Define YOSYS and SYNTHESIS in preproc
This commit is contained in:
parent
474831643c
commit
1bd67d792e
|
@ -221,7 +221,8 @@ std::string frontend_verilog_preproc(std::istream &f, std::string filename, cons
|
||||||
input_buffer_charp = 0;
|
input_buffer_charp = 0;
|
||||||
|
|
||||||
input_file(f, filename);
|
input_file(f, filename);
|
||||||
defines_map["__YOSYS__"] = "1";
|
defines_map["YOSYS"] = "1";
|
||||||
|
defines_map["SYNTHESIS"] = "1";
|
||||||
|
|
||||||
while (!input_buffer.empty())
|
while (!input_buffer.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue