Fix very long module names, bug937.

This commit is contained in:
Wilson Snyder
2015-09-19 20:12:35 -04:00
parent 64748b7b1d
commit d0653f72e2
8 changed files with 112 additions and 1 deletions
+6
View File
@@ -711,6 +711,10 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
shift;
addCFlags(argv[i]);
}
else if ( !strcmp (sw, "-comp-limits-syms") && (i+1)<argc ) { // Undocumented
shift;
VName::maxLength(atoi(argv[i]));
}
else if ( !strcmp (sw, "-converge-limit") && (i+1)<argc ) {
shift;
m_convergeLimit = atoi(argv[i]);
@@ -1190,6 +1194,8 @@ V3Options::V3Options() {
m_defaultLanguage = V3LangCode::mostRecent();
VName::maxLength(128); // Linux filename limits 256; leave half for prefix
optimize(true);
// Default +libext+
addLibExtV(""); // So include "filename.v" will find the same file