[Native] Deprecate KLIB repositories in Kotlin/Native compiler

1. Log warnings on usage of KLIB repositories.
2. Don't block using repositories for now.

^KT-61098
This commit is contained in:
Dmitriy Dolovov
2023-10-27 11:56:28 +02:00
committed by Space Team
parent c38a0e10af
commit e7b8f3ecde
4 changed files with 123 additions and 26 deletions
@@ -121,7 +121,15 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
)
var produce: String? = null
@Argument(value = "-repo", shortName = "-r", valueDescription = "<path>", description = "Library search path")
// TODO: remove after 2.0, KT-61098
@Argument(
value = "-repo",
shortName = "-r",
valueDescription = "<path>",
description = "Library search path.\n" +
"Note: This option is deprecated and will be removed in one of the future releases.\n" +
"Please use library paths instead of library names in all compiler options such as '-library'"
)
var repositories: Array<String>? = null
@Argument(value = "-target", valueDescription = "<target>", description = "Set hardware target")