* options.cc (General_options::parse_version): Allow -v to exit
without an error if there is nothing to link.
This commit is contained in:
parent
b1c2b04fde
commit
3dcad3765d
|
@ -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>
|
2009-12-29 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
* configure.ac: Set the MCMODEL_MEDIUM conditional to false if
|
* configure.ac: Set the MCMODEL_MEDIUM conditional to false if
|
||||||
|
|
|
@ -290,6 +290,7 @@ General_options::parse_version(const char* opt, const char*, Command_line*)
|
||||||
{
|
{
|
||||||
bool print_short = (opt[0] == '-' && opt[1] == 'v');
|
bool print_short = (opt[0] == '-' && opt[1] == 'v');
|
||||||
gold::print_version(print_short);
|
gold::print_version(print_short);
|
||||||
|
this->printed_version_ = true;
|
||||||
if (!print_short)
|
if (!print_short)
|
||||||
::exit(EXIT_SUCCESS);
|
::exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue