Add VK_USER_OBJS dependency to --create-lib library (#3370) (#3382).

This commit is contained in:
Julien Margetts
2022-04-12 07:04:31 -04:00
committed by GitHub
parent b7f2bb0e80
commit baff64a43d
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -19,6 +19,7 @@ Verilator 4.221 devel
* Fix Bison 3.8.2 error (#3366). [elike-ypq]
* Fix rare bug in -Oz (V3Localize) (#3286). [Geza Lore, Shunyao CAD]
* Fix filenames with dots overwriting debug .vpp files (#3373).
* Fix including VK_USER_OBJS in make library (#3370). [Julien Margetts]
Verilator 4.220 2022-03-12
+2 -2
View File
@@ -248,8 +248,8 @@ public:
}
if (!v3Global.opt.libCreate().empty()) {
const string libCreateDeps = "$(VK_OBJS) $(VK_GLOBAL_OBJS) " + v3Global.opt.libCreate()
+ ".o $(VM_HIER_LIBS)";
const string libCreateDeps = "$(VK_OBJS) $(VK_USER_OBJS) $(VK_GLOBAL_OBJS) "
+ v3Global.opt.libCreate() + ".o $(VM_HIER_LIBS)";
of.puts("\n### Library rules from --lib-create\n");
// The rule to create .a is defined in verilated.mk, so just define dependency here.
of.puts(v3Global.opt.libCreateName(false) + ": " + libCreateDeps + "\n");