diff options
| author | Nick Kledzik <kledzik@apple.com> | 2014-10-28 21:11:02 +0000 |
|---|---|---|
| committer | Nick Kledzik <kledzik@apple.com> | 2014-10-28 21:11:02 +0000 |
| commit | cb955ae1a55f9c75e4cb3b3c253c9f5b757b3434 (patch) | |
| tree | 42db99592a218cd14d62c344a54a37c4b39b7135 | |
| parent | 88282c69f3cb26aa9c2b805768866bda575cac84 (diff) | |
| download | bcm5719-llvm-cb955ae1a55f9c75e4cb3b3c253c9f5b757b3434.tar.gz bcm5719-llvm-cb955ae1a55f9c75e4cb3b3c253c9f5b757b3434.zip | |
[mach-o] Turn -single_module error into a warning
To be more compatible with existing darwin linker.
llvm-svn: 220822
| -rw-r--r-- | lld/lib/Driver/DarwinLdDriver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 500e292ec50..452d6cc5289 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"; } } } |

