Kotlin: Compile with -Werror, and fix warnings

This commit is contained in:
Ian Lynagh
2022-09-14 16:42:57 +01:00
parent d7cdeb8ac0
commit fce111bebe
3 changed files with 9 additions and 12 deletions

View File

@@ -86,7 +86,8 @@ def compile_to_dir(srcs, classpath, java_classpath, output):
run_process([kotlinc,
# kotlinc can default to 256M, which isn't enough when we are extracting the build
'-J-Xmx2G',
'-Xopt-in=kotlin.RequiresOptIn',
'-Werror',
'-opt-in=kotlin.RequiresOptIn',
'-d', output,
'-module-name', 'codeql-kotlin-extractor',
'-no-reflect', '-no-stdlib',