mirror of
https://github.com/verilator/verilator.git
synced 2026-10-05 17:43:31 +02:00
Internals: Move option checks to notify().
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user