mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[rules_jvm] Support x_x_language attribute (of type string_list) in kt_kotlinc_options rule (KTIJ-35250)
GitOrigin-RevId: 04536d57a4e845cdf88d7e388b220b48ef76e20e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
38a79c2530
commit
4e0c735816
@@ -47,6 +47,9 @@ def _map_plugins_optins_to_flag(values):
|
||||
result += ["-P", v]
|
||||
return result
|
||||
|
||||
def _map_x_x_language_to_flag(values):
|
||||
return ["-XXLanguage:%s" % v for v in values]
|
||||
|
||||
_KOPTS = {
|
||||
# "jvm_default": struct(
|
||||
# flag = "-jvm-default",
|
||||
@@ -323,15 +326,12 @@ _KOPTS = {
|
||||
),
|
||||
"x_x_language" :struct(
|
||||
args = dict(
|
||||
default = "",
|
||||
doc = "Language compatibility flags",
|
||||
values = ["", "+InlineClasses"],
|
||||
default = [],
|
||||
doc = "Language compatibility flags.",
|
||||
),
|
||||
type = attr.string,
|
||||
value_to_flag = {
|
||||
"+InlineClasses": ["-XXLanguage:+InlineClasses"],
|
||||
"": None,
|
||||
},
|
||||
type = attr.string_list,
|
||||
value_to_flag = None,
|
||||
map_value_to_flag = _map_x_x_language_to_flag,
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user