From 5d1862b76c886ae78553ea05e2336ee25a29de97 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 29 Jan 2019 08:38:48 +0000 Subject: [PATCH] [MinGW] Ignore the --plugin and --plugin-opt option GCC can use LLD with -fuse-ld=lld for MinGW these days, but by default these options are passed to the linker (unless -fno-lto is passed to the GCC driver). Differential Revision: https://reviews.llvm.org/D57304 llvm-svn: 352459 --- lld/MinGW/Options.td | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td index 948faa687521..0cda2447e522 100644 --- a/lld/MinGW/Options.td +++ b/lld/MinGW/Options.td @@ -78,3 +78,9 @@ def version: F<"version">, HelpText<"Display the version number and exit">; def alias_entry_e: JoinedOrSeparate<["-"], "e">, Alias; def alias_strip_s: Flag<["-"], "s">, Alias; def alias_strip_S: Flag<["-"], "S">, Alias; + +// Ignored options +def: S<"plugin">; +def: J<"plugin=">; +def: S<"plugin-opt">; +def: J<"plugin-opt=">;