Merge pull request #3507 from YosysHQ/claire/verificlibopt

Fix handling of verific -L options, add implicit "-L work"
This commit is contained in:
Miodrag Milanović 2022-10-10 07:50:57 +02:00 committed by GitHub
commit d68013811f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -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)) {