Treat an empty directory argument as the current directory.
This commit is contained in:
parent
32b1cf221d
commit
15893b88b0
1 changed files with 4 additions and 1 deletions
|
@ -73,7 +73,10 @@ class Search_directory
|
|||
// This is the usual constructor.
|
||||
Search_directory(const char* name, bool put_in_sysroot)
|
||||
: name_(name), put_in_sysroot_(put_in_sysroot), is_in_sysroot_(false)
|
||||
{ gold_assert(!this->name_.empty()); }
|
||||
{
|
||||
if (this->name_.empty())
|
||||
this->name_ = ".";
|
||||
}
|
||||
|
||||
// This is called if we have a sysroot. The sysroot is prefixed to
|
||||
// any entries for which put_in_sysroot_ is true. is_in_sysroot_ is
|
||||
|
|
Loading…
Reference in a new issue