[native] Drop deprecated Kotlin/Native targets (2/8)
Remove plain references to removed KonanTarget or Family entries. All the changes in this commit are simple removal of some when-branches on now dropped entries ^KT-64517
This commit is contained in:
committed by
Space Team
parent
0f05ffe111
commit
85bcc8443d
+1
-2
@@ -114,10 +114,9 @@ internal fun createLTOFinalPipelineConfig(
|
||||
context.shouldContainDebugInfo() -> LlvmOptimizationLevel.NONE
|
||||
else -> LlvmOptimizationLevel.DEFAULT
|
||||
}
|
||||
// TODO(KT-66501): investigate, why sizeLevel is essentially === to NONE (and inline it if it's OK)
|
||||
val sizeLevel: LlvmSizeLevel = when {
|
||||
// We try to optimize code as much as possible on embedded targets.
|
||||
target is KonanTarget.ZEPHYR ||
|
||||
target == KonanTarget.WASM32 -> LlvmSizeLevel.AGGRESSIVE
|
||||
context.shouldOptimize() -> LlvmSizeLevel.NONE
|
||||
context.shouldContainDebugInfo() -> LlvmSizeLevel.NONE
|
||||
else -> LlvmSizeLevel.NONE
|
||||
|
||||
-1
@@ -586,7 +586,6 @@ internal class CodegenLlvmHelpers(private val generationState: NativeGenerationS
|
||||
}
|
||||
|
||||
private val personalityFunctionName = when (target) {
|
||||
KonanTarget.IOS_ARM32 -> "__gxx_personality_sj0"
|
||||
KonanTarget.MINGW_X64 -> "__gxx_personality_seh0"
|
||||
else -> "__gxx_personality_v0"
|
||||
}
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ private fun shouldEnforceFramePointer(context: Context): Boolean {
|
||||
|
||||
return when (context.config.target.family) {
|
||||
Family.OSX, Family.IOS, Family.WATCHOS, Family.TVOS -> context.shouldContainLocationDebugInfo()
|
||||
Family.LINUX, Family.MINGW, Family.ANDROID, Family.WASM, Family.ZEPHYR -> false
|
||||
Family.LINUX, Family.MINGW, Family.ANDROID -> false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-13
@@ -110,18 +110,7 @@ internal class InfoPListBuilder(
|
||||
)
|
||||
}
|
||||
|
||||
if (target == KonanTarget.IOS_ARM32) {
|
||||
contents.append("""
|
||||
| <key>UIRequiredDeviceCapabilities</key>
|
||||
| <array>
|
||||
| <string>armv7</string>
|
||||
| </array>
|
||||
|
||||
""".trimMargin()
|
||||
)
|
||||
}
|
||||
|
||||
if (bundleType == BundleType.XCTEST) {
|
||||
if (bundleType == BundleType.XCTEST) {
|
||||
val platformName = properties.platformName().lowercase()
|
||||
val platformVersion = properties.sdkVersion
|
||||
|
||||
@@ -199,4 +188,4 @@ internal class InfoPListBuilder(
|
||||
}
|
||||
return bundleID
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user