[llvm-ar] Ignore -plugin option.

binutils ar uses -plugin to specify the LTO plugin, but LLVM doesn't
need this as it doesn't use a plugin for LTO. Accepting (and ignoring)
the option allows interoperability with existing build systems and
make downstream consumers life much easier.

No objections from Rafael on this change.

llvm-svn: 273938
This commit is contained in:
Davide Italiano 2016-06-27 20:38:39 +00:00
parent 03d8584590
commit 9ffb554e5b
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ static cl::list<std::string>
cl::desc("[relpos] [count] <archive-file> [members]..."));
static cl::opt<bool> MRI("M", cl::desc(""));
static cl::opt<std::string> Plugin("plugin", cl::desc("plugin (ignored for compatibility"));
namespace {
enum Format { Default, GNU, BSD };