Add --x-initial option

This commit is contained in:
Wilson Snyder
2017-10-01 21:31:40 -04:00
12 changed files with 340 additions and 27 deletions
+9
View File
@@ -993,6 +993,15 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
fl->v3fatal("Unknown setting for --x-assign: "<<argv[i]);
}
}
else if ( !strcmp (sw, "-x-initial") && (i+1)<argc) {
shift;
if (!strcmp (argv[i], "0")) { m_xInitial="0"; }
else if (!strcmp (argv[i], "fast")) { m_xInitial="fast"; }
else if (!strcmp (argv[i], "unique")) { m_xInitial="unique"; }
else {
fl->v3fatal("Unknown setting for --x-initial: "<<argv[i]);
}
}
else if ( !strcmp (sw, "-y") && (i+1)<argc ) {
shift; addIncDirUser (parseFileArg(optdir,string (argv[i])));
}