Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add java_parameters kt_kotlinc_option #477

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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