From cb955ae1a55f9c75e4cb3b3c253c9f5b757b3434 Mon Sep 17 00:00:00 2001 From: Nick Kledzik Date: Tue, 28 Oct 2014 21:11:02 +0000 Subject: [PATCH] [mach-o] Turn -single_module error into a warning To be more compatible with existing darwin linker. llvm-svn: 220822 --- lld/lib/Driver/DarwinLdDriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 500e292..452d6cc 100644 --- a/lld/lib/Driver/DarwinLdDriver.cpp +++ b/lld/lib/Driver/DarwinLdDriver.cpp @@ -588,8 +588,8 @@ bool DarwinLdDriver::parse(int argc, const char *argv[], } else { if (ctx.outputMachOType() != llvm::MachO::MH_DYLIB) { - diagnostics << "-single_module only used when creating a dylib\n"; - return false; + diagnostics << "warning: -single_module being ignored. " + "It is only for use when producing a dylib\n"; } } } -- 2.7.4