mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* options.cc (General_options::parse_version): Allow -v to exit
without an error if there is nothing to link.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user