* options.cc (General_options::parse_version): Allow -v to exit

without an error if there is nothing to link.
This commit is contained in:
Sriraman Tallam 2009-12-29 23:12:15 +00:00
parent b1c2b04fde
commit 3dcad3765d
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-12-29 Sriraman Tallam <tmsriram@google.com>
* options.cc (General_options::parse_version): Allow -v to exit
without an error if there is nothing to link.
2009-12-29 Ian Lance Taylor <iant@google.com>
* configure.ac: Set the MCMODEL_MEDIUM conditional to false if

View File

@ -290,6 +290,7 @@ General_options::parse_version(const char* opt, const char*, Command_line*)
{
bool print_short = (opt[0] == '-' && opt[1] == 'v');
gold::print_version(print_short);
this->printed_version_ = true;
if (!print_short)
::exit(EXIT_SUCCESS);
}