[llvm-commits] [llvm] r47674 - /llvm/trunk/lib/Linker/LinkItems.cpp

Lauro Ramos Venancio lauro.venancio at gmail.com
Wed Feb 27 09:20:32 PST 2008


Author: laurov
Date: Wed Feb 27 11:20:32 2008
New Revision: 47674

URL: http://llvm.org/viewvc/llvm-project?rev=47674&view=rev
Log:
Emit an error when a library is not found. It is the GNU ld behavior and it is expected by the configure scripts.


Modified:
    llvm/trunk/lib/Linker/LinkItems.cpp

Modified: llvm/trunk/lib/Linker/LinkItems.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkItems.cpp?rev=47674&r1=47673&r2=47674&view=diff

==============================================================================
--- llvm/trunk/lib/Linker/LinkItems.cpp (original)
+++ llvm/trunk/lib/Linker/LinkItems.cpp Wed Feb 27 11:20:32 2008
@@ -74,7 +74,7 @@
   // Determine where this library lives.
   sys::Path Pathname = FindLib(Lib);
   if (Pathname.isEmpty())
-    return warning("Cannot find library '" + Lib + "'");
+    return error("Cannot find library '" + Lib + "'");
 
   // If its an archive, try to link it in
   std::string Magic;





More information about the llvm-commits mailing list