diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index 6ece501e6..1fc0d477b 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -110,7 +110,9 @@ public: string newVarCmt = varp->mtasksString(); if (*curVarCmtp != newVarCmt) { *curVarCmtp = newVarCmt; - puts("// Begin mtask footprint "+*curVarCmtp+"\n"); + if (v3Global.opt.threads()) { + puts("// Begin mtask footprint "+*curVarCmtp+"\n"); + } } } void emitTypedefs(AstNode* firstp) {