Skip to content

Commit 31a46d8

Browse files
ALikhachevAbduqodiri Qurbonzoda
authored andcommitted
Remove unnecessary onlyIf configuration on K/N tasks
1 parent ef25a7b commit 31a46d8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

plugin/main/src/kotlinx/benchmark/gradle/NativeMultiplatformTasks.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ private fun Project.createNativeBenchmarkGenerateSourceTask(target: NativeBenchm
3737
group = BenchmarksPlugin.BENCHMARKS_TASK_GROUP
3838
description = "Generate Native source files for '${target.name}'"
3939
val compilation = target.compilation
40-
onlyIf { compilation.compileKotlinTask.enabled }
4140
this.nativeTarget = compilation.target.konanTarget.name
4241
title = target.name
4342
inputClassesDirs = compilation.output.allOutputs
@@ -96,7 +95,6 @@ private fun Project.createNativeBenchmarkCompileTask(target: NativeBenchmarkTarg
9695
description = "Compile Native benchmark source files for '${compilationTarget.name}'"
9796
dependsOn(generateSourceTaskName(target))
9897
}
99-
linkTask.onlyIf { compilation.compileKotlinTask.enabled }
10098
tasks.getByName(BenchmarksPlugin.ASSEMBLE_BENCHMARKS_TASKNAME).dependsOn(linkTask)
10199
entryPoint("kotlinx.benchmark.generated.main")
102100
}
@@ -121,7 +119,6 @@ fun Project.createNativeBenchmarkExecTask(
121119
val binary =
122120
benchmarkCompilation.target.binaries.getExecutable(benchmarkCompilation.name, NativeBuildType.RELEASE)
123121
val linkTask = binary.linkTask
124-
onlyIf { linkTask.enabled }
125122

126123
dependsOn(linkTask)
127124

0 commit comments

Comments
 (0)