projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32b1cf2
)
Treat an empty directory argument as the current directory.
author
Ian Lance Taylor
<iant@google.com>
Mon, 4 Feb 2008 22:44:35 +0000
(22:44 +0000)
committer
Ian Lance Taylor
<iant@google.com>
Mon, 4 Feb 2008 22:44:35 +0000
(22:44 +0000)
gold/options.h
patch
|
blob
|
history
diff --git
a/gold/options.h
b/gold/options.h
index 47623dc8701b2f8e3ae3913cc449b48f9c941fa2..aa51126d82657809654a11e25fb8ad2fcdd233b0 100644
(file)
--- a/
gold/options.h
+++ b/
gold/options.h
@@
-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