mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Add --xml-output option.
This commit is contained in:
+8
-2
@@ -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])));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user