[llvm] r273938 - [llvm-ar] Ignore -plugin option.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 27 13:38:39 PDT 2016


Author: davide
Date: Mon Jun 27 15:38:39 2016
New Revision: 273938

URL: http://llvm.org/viewvc/llvm-project?rev=273938&view=rev
Log:
[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.

Modified:
    llvm/trunk/tools/llvm-ar/llvm-ar.cpp

Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=273938&r1=273937&r2=273938&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Mon Jun 27 15:38:39 2016
@@ -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 };




More information about the llvm-commits mailing list