mirror of https://github.com/YosysHQ/yosys.git
Fix handling of verific -L options, add implicit "-L work"
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
parent
0e13d7e4c7
commit
090228a6a1
|
@ -2791,6 +2791,20 @@ struct VerificPass : public Pass {
|
|||
}
|
||||
|
||||
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++)
|
||||
{
|
||||
if (args[argidx] == "-work" && argidx+1 < GetSize(args)) {
|
||||
|
|
Loading…
Reference in New Issue