Get free options from binaries (#3532)
This commit is contained in:
+3
@@ -109,6 +109,9 @@ open class KotlinNativeBenchmarkingPlugin: BenchmarkingPlugin() {
|
||||
project.configureJVMTarget()
|
||||
}
|
||||
|
||||
override fun getCompilerFlags(project: Project, nativeTarget: KotlinNativeTarget) =
|
||||
super.getCompilerFlags(project, nativeTarget) + project.nativeBinary.freeCompilerArgs.map { "\"$it\"" }
|
||||
|
||||
override fun NamedDomainObjectContainer<KotlinSourceSet>.configureSources(project: Project) {
|
||||
project.benchmark.let {
|
||||
commonMain.kotlin.srcDirs(*it.commonSrcDirs.toTypedArray())
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ open class SwiftBenchmarkingPlugin : BenchmarkingPlugin() {
|
||||
|
||||
override fun getCompilerFlags(project: Project, nativeTarget: KotlinNativeTarget) =
|
||||
if (project.benchmark.useCodeSize == CodeSizeEntity.FRAMEWORK) {
|
||||
super.getCompilerFlags(project, nativeTarget)
|
||||
super.getCompilerFlags(project, nativeTarget) + framework.freeCompilerArgs.map { "\"$it\"" }
|
||||
} else {
|
||||
listOf("-O", "-wmo")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user