Add --xml-output option.

This commit is contained in:
Wilson Snyder
2019-10-31 21:17:05 -04:00
parent 8f6efdaf5c
commit f781085755
11 changed files with 98 additions and 8 deletions
+8 -2
View File
@@ -567,14 +567,16 @@ void V3Options::notify() {
!v3Global.opt.cdc()
&& !v3Global.opt.dpiHdrOnly()
&& !v3Global.opt.lintOnly()
&& !v3Global.opt.preprocOnly());
&& !v3Global.opt.preprocOnly()
&& !v3Global.opt.xmlOnly());
}
if (v3Global.opt.makeDepend().isDefault()) {
v3Global.opt.m_makeDepend.setTrueOrFalse(
!v3Global.opt.cdc()
&& !v3Global.opt.dpiHdrOnly()
&& !v3Global.opt.lintOnly()
&& !v3Global.opt.preprocOnly());
&& !v3Global.opt.preprocOnly()
&& !v3Global.opt.xmlOnly());
}
}
@@ -1189,6 +1191,10 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
fl->v3fatal("Unknown setting for --x-initial: "<<argv[i]);
}
}
else if (!strcmp(sw, "-xml-output") && (i+1)<argc) {
shift; m_xmlOutput = argv[i];
m_xmlOnly = true;
}
else if (!strcmp(sw, "-y") && (i+1)<argc) {
shift; addIncDirUser(parseFileArg(optdir, string(argv[i])));
}