Skip to content

Commit 6e33397

Browse files
authored
add -Xemit-jvm-type-annotations (#770)
* add -Xemit-jvm-type-annotations * add to 1.7
1 parent 81c5c12 commit 6e33397

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

src/main/starlark/rkt_1_5/kotlin/opts.bzl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ _KOPTS = {
117117
True: ["-java-parameters"],
118118
},
119119
),
120+
"x_emit_jvm_type_annotations": struct(
121+
args = dict(
122+
default = False,
123+
doc = "Basic support for type annotations in JVM bytecode.",
124+
),
125+
type = attr.bool,
126+
value_to_flag = {
127+
True: ["-Xemit-jvm-type-annotations"],
128+
},
129+
),
120130
"x_multi_platform": struct(
121131
args = dict(
122132
default = False,

src/main/starlark/rkt_1_6/kotlin/opts.bzl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ _KOPTS = {
117117
True: ["-Xmulti-platform"],
118118
},
119119
),
120+
"x_emit_jvm_type_annotations": struct(
121+
args = dict(
122+
default = False,
123+
doc = "Basic support for type annotations in JVM bytecode.",
124+
),
125+
type = attr.bool,
126+
value_to_flag = {
127+
True: ["-Xemit-jvm-type-annotations"],
128+
},
129+
),
120130
"x_sam_conversions": struct(
121131
args = dict(
122132
default = "class",

src/main/starlark/rkt_1_7/kotlin/opts.bzl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@ _KOPTS = {
141141
"indy": ["-Xlambdas=indy"],
142142
},
143143
),
144+
"x_emit_jvm_type_annotations": struct(
145+
args = dict(
146+
default = False,
147+
doc = "Basic support for type annotations in JVM bytecode.",
148+
),
149+
type = attr.bool,
150+
value_to_flag = {
151+
True: ["-Xemit-jvm-type-annotations"],
152+
},
153+
),
144154
"x_optin": struct(
145155
args = dict(
146156
default = [],

0 commit comments

Comments
 (0)