Add -o option to specify executable name

This commit is contained in:
Wilson Snyder
2010-01-30 09:42:44 -05:00
parent c49e0ac5c8
commit 7fd6ddc25b
5 changed files with 15 additions and 3 deletions
+3
View File
@@ -750,6 +750,9 @@ void V3Options::parseOptsList(FileLine* fl, int argc, char** argv) {
shift; m_makeDir = argv[i];
addIncDir (string (m_makeDir)); // Need to find generated files there too
}
else if ( !strcmp (sw, "-o") && (i+1)<argc ) {
shift; m_exeName = argv[i];
}
else if ( !strncmp (sw, "-U", 2)) {
V3PreShell::undef (string (sw+strlen("-U")));
}