Drop bitcode from Swift compilations in benchmarks
^KT-69781
diff --git a/kotlin-native/performance/buildSrc/src/main/kotlin/benchmark/SwiftBenchmarkingPlugin.kt b/kotlin-native/performance/buildSrc/src/main/kotlin/benchmark/SwiftBenchmarkingPlugin.kt
index 316bac2..c2634d7 100644
--- a/kotlin-native/performance/buildSrc/src/main/kotlin/benchmark/SwiftBenchmarkingPlugin.kt
+++ b/kotlin-native/performance/buildSrc/src/main/kotlin/benchmark/SwiftBenchmarkingPlugin.kt
@@ -92,7 +92,7 @@
val frameworkParentDirPath = framework.outputDirectory.absolutePath
val options = listOf("-O", "-wmo", "-Xlinker", "-rpath", "-Xlinker", frameworkParentDirPath, "-F", frameworkParentDirPath)
compileSwift(project, nativeTarget.konanTarget, benchmark.swiftSources, options,
- Paths.get(layout.buildDirectory.get().asFile.absolutePath, benchmark.applicationName), false)
+ Paths.get(layout.buildDirectory.get().asFile.absolutePath, benchmark.applicationName))
}
}
}
@@ -123,7 +123,7 @@
}
fun compileSwift(
project: Project, target: KonanTarget, sources: List<String>, options: List<String>,
- output: Path, fullBitcode: Boolean = false
+ output: Path
) {
val platform = project.platformManager.platform(target)
assert(platform.configurables is AppleConfigurables)
@@ -133,8 +133,7 @@
val swiftTarget = configs.targetTriple.withOSVersion(configs.osVersionMin).toString()
val args = listOf("-sdk", configs.absoluteTargetSysRoot, "-target", swiftTarget) +
- options + "-o" + output.toString() + sources +
- if (fullBitcode) listOf("-embed-bitcode", "-Xlinker", "-bitcode_verify") else listOf("-embed-bitcode-marker")
+ options + "-o" + output.toString() + sources
val out = mutableListOf<String>().apply {
add(compiler)