[K/N] Make target deprecation warning more visible
Two columns in Gradle output makes IDE display such message in a separate view which makes it more discoverable.
This commit is contained in:
committed by
Space Team
parent
a197d1aadc
commit
de444542d0
+1
-1
@@ -64,7 +64,7 @@ class KonanDriver(
|
|||||||
// Avoid showing warning twice in 2-phase compilation.
|
// Avoid showing warning twice in 2-phase compilation.
|
||||||
if (konanConfig.produce != CompilerOutputKind.LIBRARY && konanConfig.target in deprecatedTargets) {
|
if (konanConfig.produce != CompilerOutputKind.LIBRARY && konanConfig.target in deprecatedTargets) {
|
||||||
configuration.report(CompilerMessageSeverity.STRONG_WARNING,
|
configuration.report(CompilerMessageSeverity.STRONG_WARNING,
|
||||||
"target ${konanConfig.target} is deprecated and will be removed soon. See $DEPRECATION_LINK")
|
"target ${konanConfig.target} is deprecated and will be removed soon. See: $DEPRECATION_LINK")
|
||||||
}
|
}
|
||||||
|
|
||||||
ensureModuleName(konanConfig)
|
ensureModuleName(konanConfig)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import org.jetbrains.kotlin.konan.util.Named
|
|||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
|
|
||||||
private const val DEPRECATION_LINK = "https://kotl.in/native-targets-tiers"
|
private const val DEPRECATION_LINK = "https://kotl.in/native-targets-tiers"
|
||||||
const val DEPRECATED_TARGET_MESSAGE = "Target is deprecated and will be removed soon. See $DEPRECATION_LINK"
|
const val DEPRECATED_TARGET_MESSAGE = "Target is deprecated and will be removed soon. See: $DEPRECATION_LINK"
|
||||||
|
|
||||||
sealed class KonanTarget(override val name: String, val family: Family, val architecture: Architecture) : Named, Serializable {
|
sealed class KonanTarget(override val name: String, val family: Family, val architecture: Architecture) : Named, Serializable {
|
||||||
object ANDROID_X64 : KonanTarget("android_x64", Family.ANDROID, Architecture.X64)
|
object ANDROID_X64 : KonanTarget("android_x64", Family.ANDROID, Architecture.X64)
|
||||||
|
|||||||
Reference in New Issue
Block a user