[PATCH] D15027: [ELF] Lookup INPUT argument in the current directory

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 12:26:41 PST 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL254178: [ELF] Lookup INPUT argument in the current directory (authored by atanasyan).

Changed prior to commit:
  http://reviews.llvm.org/D15027?vs=41260&id=41267#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D15027

Files:
  lld/trunk/ELF/LinkerScript.cpp

Index: lld/trunk/ELF/LinkerScript.cpp
===================================================================
--- lld/trunk/ELF/LinkerScript.cpp
+++ lld/trunk/ELF/LinkerScript.cpp
@@ -179,6 +179,8 @@
       Driver->addFile(Saver.save(Config->Sysroot + "/" + S.substr(1)));
   } else if (S.startswith("-l")) {
     Driver->addFile(searchLibrary(S.substr(2)));
+  } else if (sys::fs::exists(S)) {
+    Driver->addFile(S);
   } else {
     std::string Path = findFromSearchPaths(S);
     if (Path.empty())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15027.41267.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151126/856db5a4/attachment.bin>


More information about the llvm-commits mailing list