[mach-o] Turn -single_module error into a warning
authorNick Kledzik <kledzik@apple.com>
Tue, 28 Oct 2014 21:11:02 +0000 (21:11 +0000)
committerNick Kledzik <kledzik@apple.com>
Tue, 28 Oct 2014 21:11:02 +0000 (21:11 +0000)
To be more compatible with existing darwin linker.

llvm-svn: 220822

lld/lib/Driver/DarwinLdDriver.cpp

index 500e292..452d6cc 100644 (file)
@@ -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";
       }
     }
   }