Fix "read -incdir"
authorClifford Wolf <clifford@clifford.at>
Mon, 16 Jul 2018 14:48:09 +0000 (16:48 +0200)
committerClifford Wolf <clifford@clifford.at>
Mon, 16 Jul 2018 14:48:09 +0000 (16:48 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/verific/verific.cc

index ab752b96d09937192a849335b29de499585aa657..54b68208268e3173ce3c293362d4dd30646e923b 100644 (file)
@@ -2276,7 +2276,7 @@ struct ReadPass : public Pass {
                        }
                        args[0] = "verilog_defaults";
                        args[1] = "-add";
-                       for (int i = 1; i < GetSize(args); i++)
+                       for (int i = 2; i < GetSize(args); i++)
                                args[i] = "-I" + args[i];
                        Pass::call(design, args);
                        return;