File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,7 @@ def _run_ksp_builder_actions(
459
459
460
460
def _run_kt_builder_action (
461
461
ctx ,
462
+ mnemonic ,
462
463
rule_kind ,
463
464
toolchains ,
464
465
srcs ,
@@ -469,9 +470,11 @@ def _run_kt_builder_action(
469
470
transitive_runtime_jars ,
470
471
plugins ,
471
472
outputs ,
472
- build_kotlin = True ,
473
- mnemonic = "KotlinCompile" ):
473
+ build_kotlin = True ):
474
474
"""Creates a KotlinBuilder action invocation."""
475
+ if not mnemonic :
476
+ fail ("Error: A `mnemonic` must be provided for every invocation of `_run_kt_builder_action`!" )
477
+
475
478
kotlinc_options = ctx .attr .kotlinc_opts [KotlincOptions ] if ctx .attr .kotlinc_opts else toolchains .kt .kotlinc_options
476
479
javac_options = ctx .attr .javac_opts [JavacOptions ] if ctx .attr .javac_opts else toolchains .kt .javac_options
477
480
You can’t perform that action at this time.
0 commit comments