Skip to content

Commit bc59232

Browse files
committed
Kotlin: clamp -language-version to 1.9
This is an experiment to see if compiling the 1.8 kotlin extractor with `-language-version=1.9` will cause problems. It it works, it will allow us to use a 2.3.x toolchain (which doesn't support 1.8 any more).
1 parent 9a4bc69 commit bc59232

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/kotlin-extractor/versions.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def version_less(lhs, rhs):
2222

2323
def get_language_version(version):
2424
major, minor, _ = _version_to_tuple(version)
25+
if major == 1 and minor < 9:
26+
return "1.9"
2527
return "%s.%s" % (major, minor)
2628

2729
def _basename(path):

0 commit comments

Comments
 (0)