diff --git a/src/main/starlark/rkt_1_5/kotlin/opts.bzl b/src/main/starlark/rkt_1_5/kotlin/opts.bzl index 155e02de4..0d4ec0c5c 100644 --- a/src/main/starlark/rkt_1_5/kotlin/opts.bzl +++ b/src/main/starlark/rkt_1_5/kotlin/opts.bzl @@ -88,6 +88,19 @@ _KOPTS = { True: ["-Xno-optimized-callable-reference"], }, ), + "x_explicit_api_mode": struct( + args = dict( + default = "off", + doc = "Enable explicit API mode for Kotlin libraries.", + values = ["off", "warning", "strict"], + ), + type = attr.string, + value_to_flag = { + "off": None, + "warning": ["-Xexplicit-api=warning"], + "strict": ["-Xexplicit-api=strict"], + }, + ), "java_parameters": struct( args = dict( default = False,