Treat an empty directory argument as the current directory.
authorIan Lance Taylor <iant@google.com>
Mon, 4 Feb 2008 22:44:35 +0000 (22:44 +0000)
committerIan Lance Taylor <iant@google.com>
Mon, 4 Feb 2008 22:44:35 +0000 (22:44 +0000)
gold/options.h

index 47623dc8701b2f8e3ae3913cc449b48f9c941fa2..aa51126d82657809654a11e25fb8ad2fcdd233b0 100644 (file)
@@ -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