mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Merge pull request #2463 from georgerennie/fix_verilog_frontend_auto_defines
Fix SYNTHESIS always being defined in Verilog frontend
This commit is contained in:
commit
7b0cfd5c36
|
@ -321,7 +321,6 @@ struct define_body_t
|
||||||
define_map_t::define_map_t()
|
define_map_t::define_map_t()
|
||||||
{
|
{
|
||||||
add("YOSYS", "1");
|
add("YOSYS", "1");
|
||||||
add(formal_mode ? "FORMAL" : "SYNTHESIS", "1");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We must define this destructor here (rather than relying on the default), because we need to
|
// We must define this destructor here (rather than relying on the default), because we need to
|
||||||
|
|
|
@ -446,6 +446,9 @@ struct VerilogFrontend : public Frontend {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defines_map.add(formal_mode ? "FORMAL" : "SYNTHESIS", "1");
|
||||||
|
|
||||||
extra_args(f, filename, args, argidx);
|
extra_args(f, filename, args, argidx);
|
||||||
|
|
||||||
log_header(design, "Executing Verilog-2005 frontend: %s\n", filename.c_str());
|
log_header(design, "Executing Verilog-2005 frontend: %s\n", filename.c_str());
|
||||||
|
|
Loading…
Reference in a new issue