mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 12:19:23 +08:00
[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:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user