Skip to content

Commit

Permalink
Add java_parameters kt_kotlinc_option (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
sq-msamuel authored Feb 9, 2021
1 parent d52aca7 commit 96c70d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kotlin/internal/jvm/compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ def _kotlinc_options_provider_to_flags(opts, language_version):
flags.append("-Xjvm-default=compatibility")
if opts.x_no_optimized_callable_references:
flags.append("-Xno-optimized-callable-references")
if opts.java_parameters:
flags.append("-java-parameters")
return flags

def _validate_kotlinc_options(opts, language_version):
Expand Down
7 changes: 7 additions & 0 deletions kotlin/internal/opts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ _KOPTS = {
),
type = attr.bool,
),
"java_parameters": struct(
args = dict(
default = False,
doc = "Generate metadata for Java 1.8+ reflection on method parameters.",
),
type = attr.bool,
),
}

KotlincOptions = provider(
Expand Down

0 comments on commit 96c70d1

Please sign in to comment.