Don't emit trace files with --lint-only

This commit is contained in:
Geza Lore 2021-07-19 17:00:23 +01:00
parent cf39331d1f
commit 30fa5e41be
1 changed files with 1 additions and 1 deletions

View File

@ -718,7 +718,7 @@ void V3EmitC::emitcImp() {
}
// Emit trace routines (currently they can only exist in the top module)
if (v3Global.opt.trace()) {
if (v3Global.opt.trace() && !v3Global.opt.lintOnly()) {
EmitCTrace::main(v3Global.rootp()->topModulep(), /* slow: */ true);
EmitCTrace::main(v3Global.rootp()->topModulep(), /* slow: */ false);
}