Warn on duplicate library inclusion.

This commit is contained in:
Alexander Gorshenev
2017-07-05 15:34:12 +03:00
committed by alexander-gorshenev
parent 99316263d5
commit cd9d0ab768
2 changed files with 17 additions and 3 deletions
@@ -72,8 +72,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
}
if (arguments.freeArgs.isEmpty() && !arguments.isUsefulWithoutFreeArgs) {
val messageCollector = configuration.getNotNull(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY)
messageCollector.report(ERROR, "You have not specified any compilation arguments. No output has been produced.")
configuration.report(ERROR, "You have not specified any compilation arguments. No output has been produced.")
}
// TODO: catch Errors and IllegalStateException.