summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/flycheck-android-kotlin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/flycheck-android-kotlin.py b/bin/flycheck-android-kotlin.py
index 8d0fb16..a7994c9 100644
--- a/bin/flycheck-android-kotlin.py
+++ b/bin/flycheck-android-kotlin.py
@@ -93,7 +93,7 @@ def run_kotlinc(cp, files, output, args, sourcefile, outdir):
command.extend(['-cp', ':'.join(cp)])
if output:
command.extend(['-d', output])
- command.extend(args)
+ command.extend([arg for arg in args if not arg.startswith('-Xplugin=')])
command.append(sourcefile)
if outdir:
with tempfile.NamedTemporaryFile(mode='w') as f: