Skip to content

Commit f85b06c

Browse files
committed
Fix "kotlinBinaryenSetup" task not found issue.
1 parent 2cd8ae5 commit f85b06c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ir-printer-gradle-plugin/src/main/java/com/bennyhuo/kotlin/ir/printer/gradle/IrPrinterGradlePlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class IrPrinterGradlePlugin : KotlinCompilerPluginSupportPlugin {
111111
File(binaryenBinDir, "wasm-dis").absolutePath
112112
}
113113

114-
val binaryenSetupTask = project.tasks.withType(BinaryenSetupTask::class.java)
114+
val binaryenSetupTask = project.rootProject.tasks.withType(BinaryenSetupTask::class.java).single()
115115
target.binaries.forEach { binary ->
116116
val taskName = "generate${binary.name.capitalized()}${target.targetName.capitalized()}Wat"
117117
project.tasks.register(taskName, WasmDisTask::class.java) {

0 commit comments

Comments
 (0)