mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
With --Wall, add INCABSPATH warning on `include with absolute paths.
This commit is contained in:
@@ -90,6 +90,9 @@ protected:
|
||||
}
|
||||
|
||||
void preprocInclude (FileLine* fl, const string& modname) {
|
||||
if (modname[0]=='/' || modname[0]=='\\') {
|
||||
fl->v3warn(INCABSPATH,"`include with absolute path should be relative, and use +include: "<<modname);
|
||||
}
|
||||
preprocOpen(fl, s_filterp, modname, "Cannot find include file: ");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user