]> granicus.if.org Git - llvm/commitdiff
[llvm-ar] Ignore -plugin option.
authorDavide Italiano <davide@freebsd.org>
Mon, 27 Jun 2016 20:38:39 +0000 (20:38 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 27 Jun 2016 20:38:39 +0000 (20:38 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273938 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-ar/llvm-ar.cpp

index 51c4fed743b4973e49a2875081edf81be8db3b56..c8e241e2bf60101ec9d99ae3d8eb3c009773e3cf 100644 (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 };