Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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).
  • Loading branch information
redsun82 committed Mar 23, 2026
commit bc592328e589c64b78322a51e187f434073a033c
2 changes: 2 additions & 0 deletions java/kotlin-extractor/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def version_less(lhs, rhs):

def get_language_version(version):
major, minor, _ = _version_to_tuple(version)
if major == 1 and minor < 9:
return "1.9"
return "%s.%s" % (major, minor)

def _basename(path):
Expand Down
Loading