mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #3507 from YosysHQ/claire/verificlibopt
Fix handling of verific -L options, add implicit "-L work"
This commit is contained in:
commit
d68013811f
|
@ -2791,6 +2791,20 @@ struct VerificPass : public Pass {
|
||||||
}
|
}
|
||||||
|
|
||||||
veri_file::RemoveAllLOptions();
|
veri_file::RemoveAllLOptions();
|
||||||
|
veri_file::AddLOption("work");
|
||||||
|
for (int i = argidx; i < GetSize(args); i++)
|
||||||
|
{
|
||||||
|
if (args[i] == "-work" && i+1 < GetSize(args)) {
|
||||||
|
++i;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (args[i] == "-L" && i+1 < GetSize(args)) {
|
||||||
|
if (args[++i] == "work")
|
||||||
|
veri_file::RemoveAllLOptions();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
for (; argidx < GetSize(args); argidx++)
|
for (; argidx < GetSize(args); argidx++)
|
||||||
{
|
{
|
||||||
if (args[argidx] == "-work" && argidx+1 < GetSize(args)) {
|
if (args[argidx] == "-work" && argidx+1 < GetSize(args)) {
|
||||||
|
|
Loading…
Reference in New Issue