[mach-o] Turn -single_module error into a warning

To be more compatible with existing darwin linker.

llvm-svn: 220822
This commit is contained in:
Nick Kledzik
2014-10-28 21:11:02 +00:00
parent 88282c69f3
commit cb955ae1a5

View 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";
}
}
}