Skip to content

Commit

Permalink
inline-classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffzoch committed Nov 17, 2020
1 parent 95b642f commit 87a5e55
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 @@ -205,6 +205,8 @@ def _kotlinc_options_provider_to_flags(opts):
flags.append("-Xallow-jvm-ir-dependencies")
if opts.x_skip_prerelease_check:
flags.append("-Xskip-prerelease-check")
if opts.x_inline_classes:
flags.append("-Xinline-classes")
return flags

def _javac_options_provider_to_flags(opts):
Expand Down
7 changes: 7 additions & 0 deletions kotlin/internal/opts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ _KOPTS = {
),
type = attr.bool,
),
"x_inline_classes": struct(
args = dict(
default = False,
doc = "Enable experimental inline classes",
),
type = attr.bool,
),
}

KotlincOptions = provider(
Expand Down

0 comments on commit 87a5e55

Please sign in to comment.