From 14241b29b2d1607958300d61061406524c07823e Mon Sep 17 00:00:00 2001 From: Lauro Ramos Venancio Date: Wed, 27 Feb 2008 17:20:32 +0000 Subject: [PATCH] Emit an error when a library is not found. It is the GNU ld behavior and it is expected by the configure scripts. llvm-svn: 47674 --- llvm/lib/Linker/LinkItems.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Linker/LinkItems.cpp b/llvm/lib/Linker/LinkItems.cpp index 4d6139505114..7c888aa498a3 100644 --- a/llvm/lib/Linker/LinkItems.cpp +++ b/llvm/lib/Linker/LinkItems.cpp @@ -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; -- GitLab