Fix --prof-exec using --lib-create

This commit is contained in:
Geza Lore
2025-11-25 10:08:03 +00:00
parent d2ce5e62e7
commit 7cfe9b5356
3 changed files with 65 additions and 2 deletions
+3 -1
View File
@@ -421,8 +421,10 @@ class EmitCModel final : public EmitCFunc {
puts(topModNameProtected + "__" + protect("_eval_settle") + "(&(vlSymsp->TOP));\n");
puts("}\n");
if (v3Global.opt.profExec() && !v3Global.opt.hierChild())
if (v3Global.opt.profExec() && !v3Global.opt.hierChild()
&& v3Global.opt.libCreate().empty()) {
puts("vlSymsp->__Vm_executionProfilerp->configure();\n");
}
puts("VL_DEBUG_IF(VL_DBG_MSGF(\"+ Eval\\n\"););\n");
puts(topModNameProtected + "__" + protect("_eval") + "(&(vlSymsp->TOP));\n");