Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ba8cca

Browse files
committed
Kotlin: Make build compatible with older javac's
1 parent 6fd8d63 commit 2ba8cca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/kotlin-extractor/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def compile_to_dir(srcs, classpath, java_classpath, output):
2323
# Use javac to compile .java files, referencing the Kotlin class files:
2424
subprocess.run([javac,
2525
'-d', output,
26-
'--release', '8',
26+
'-source', '8', '-target', '8',
2727
'-classpath', "%s:%s:%s" % (output, classpath, java_classpath)] + [s for s in srcs if s.endswith(".java")], check=True)
2828

2929

0 commit comments

Comments
 (0)