From 9ffb554e5b51d34c2d40a2a24e4b6ef53e4c6ecf Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Mon, 27 Jun 2016 20:38:39 +0000 Subject: [PATCH] [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 --- llvm/tools/llvm-ar/llvm-ar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index 51c4fed743b4..c8e241e2bf60 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/tools/llvm-ar/llvm-ar.cpp @@ -71,6 +71,7 @@ static cl::list cl::desc("[relpos] [count] [members]...")); static cl::opt MRI("M", cl::desc("")); +static cl::opt Plugin("plugin", cl::desc("plugin (ignored for compatibility")); namespace { enum Format { Default, GNU, BSD };