mirror of
https://github.com/verilator/verilator.git
synced 2026-10-05 17:43:31 +02:00
Fix r1010; bad prefix default
git-svn-id: file://localhost/svn/verilator/trunk/verilator@1011 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
+1
-1
@@ -429,7 +429,7 @@ void V3Options::parseOpts (FileLine* fl, int argc, char** argv) {
|
||||
}
|
||||
|
||||
// Default prefix to the filename
|
||||
if (prefix()=="") m_prefix = string("V")+topModule();
|
||||
if (prefix()=="" && topModule()!="") m_prefix = string("V")+topModule();
|
||||
if (prefix()=="") m_prefix = string("V")+filenameNonExt(*(vFiles().begin()));
|
||||
if (modPrefix()=="") m_modPrefix = prefix();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user