[PATCH] D15027: [ELF] Lookup INPUT argument in the current directory
    Rui Ueyama via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Nov 26 09:32:50 PST 2015
    
    
  
ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.
LGTM with a nit.
================
Comment at: ELF/LinkerScript.cpp:182-185
@@ -181,6 +181,6 @@
     Driver->addFile(searchLibrary(S.substr(2)));
   } else {
-    std::string Path = findFromSearchPaths(S);
-    if (Path.empty())
-      error("Unable to find " + S);
-    Driver->addFile(Saver.save(Path));
+    if (sys::fs::exists(S))
+      Driver->addFile(S);
+    else {
+      std::string Path = findFromSearchPaths(S);
----------------
  } else if (sys::fs::exists(S)) {
Repository:
  rL LLVM
http://reviews.llvm.org/D15027
    
    
More information about the llvm-commits
mailing list