From: Nick Kledzik Date: Tue, 28 Oct 2014 21:11:02 +0000 (+0000) Subject: [mach-o] Turn -single_module error into a warning X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb955ae1a55f9c75e4cb3b3c253c9f5b757b3434;p=platform%2Fupstream%2Fllvm.git [mach-o] Turn -single_module error into a warning To be more compatible with existing darwin linker. llvm-svn: 220822 --- 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"; } } }