Fix expand optimization slowing --lint-only. Closes #2091.

This commit is contained in:
Wilson Snyder 2020-01-09 18:04:49 -05:00
parent 525c79bd0a
commit aac02c1ed1
2 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
**** Fix tracing -1 index arrays. Closes #2090. [Yutetsu Takatsukasa]
**** Fix expand optimization slowing --lint-only. Closes #2091. [Thomas Watts]
* Verilator 4.024 2019-12-08

View File

@ -470,7 +470,8 @@ void process() {
}
// Expand macros and wide operators into C++ primitives
if (!v3Global.opt.xmlOnly()
if (!v3Global.opt.lintOnly()
&& !v3Global.opt.xmlOnly()
&& v3Global.opt.oExpand()) {
V3Expand::expandAll(v3Global.rootp());
}