Add version and output kind
This commit is contained in:
committed by
Pavel Punegov
parent
6b2257792c
commit
d5fcf23629
@@ -63,9 +63,12 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
|
||||
return ExitCode.COMPILATION_ERROR
|
||||
} catch (e: Throwable) {
|
||||
configuration.report(ERROR, """
|
||||
|Compilation failed with exception: ${e.message}, caused by ${e.cause?.message ?: ""}
|
||||
|Compilation failed: ${e.message}
|
||||
|
||||
| * Source files: ${environment.getSourceFiles().joinToString(transform = KtFile::getName)}
|
||||
| * Compiler version info: Konan: ${KonanVersion.CURRENT} / Kotlin: ${KotlinVersion.CURRENT}
|
||||
| * Output kind: ${configuration.get(KonanConfigKeys.PRODUCE)}
|
||||
|
||||
|Source files: ${ environment.getSourceFiles().joinToString(transform = KtFile::getName) }
|
||||
""".trimMargin())
|
||||
throw e
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user