Emit an error when a library is not found. It is the GNU ld behavior and it is expect...
authorLauro Ramos Venancio <lauro.venancio@gmail.com>
Wed, 27 Feb 2008 17:20:32 +0000 (17:20 +0000)
committerLauro Ramos Venancio <lauro.venancio@gmail.com>
Wed, 27 Feb 2008 17:20:32 +0000 (17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47674 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkItems.cpp

index 4d613950511456c6d7c463cf0b7366d1a372a7ab..7c888aa498a3f1658b3e7f3a964698b4f03145c1 100644 (file)
@@ -74,7 +74,7 @@ bool Linker::LinkInLibrary(const std::string& Lib, bool& is_native) {
   // 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;