summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-01-29 08:38:48 +0000
committerMartin Storsjo <martin@martin.st>2019-01-29 08:38:48 +0000
commit5d1862b76c886ae78553ea05e2336ee25a29de97 (patch)
tree5ba2fe58d544279bfea7ec7f876c60694e60ed77
parentc1c97aa22d59b1d4e6295a8316728029d59ebe23 (diff)
downloadbcm5719-llvm-5d1862b76c886ae78553ea05e2336ee25a29de97.tar.gz
bcm5719-llvm-5d1862b76c886ae78553ea05e2336ee25a29de97.zip
[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
-rw-r--r--lld/MinGW/Options.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td
index 948faa68752..0cda2447e52 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<entry>;
def alias_strip_s: Flag<["-"], "s">, Alias<strip_all>;
def alias_strip_S: Flag<["-"], "S">, Alias<strip_debug>;
+
+// Ignored options
+def: S<"plugin">;
+def: J<"plugin=">;
+def: S<"plugin-opt">;
+def: J<"plugin-opt=">;
OpenPOWER on IntegriCloud