Internals: Move option checks to notify().

This commit is contained in:
Wilson Snyder
2019-10-03 22:18:29 -04:00
parent bd89c71694
commit e1e45cf13c
3 changed files with 17 additions and 7 deletions
+14
View File
@@ -522,6 +522,20 @@ string V3Options::getenvVERILATOR_ROOT() {
return var;
}
//######################################################################
// V3 Options notification methods
void V3Options::notify() {
// Notify that all arguments have been passed and final modification can be made.
if (!outFormatOk()
&& !preprocOnly()
&& !lintOnly()
&& !xmlOnly()
&& !cdc()) {
v3fatal("verilator: Need --cc, --sc, --cdc, --lint-only, --xml_only or --E option");
}
}
//######################################################################
// V3 Options accessors