File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
plugin/main/src/kotlinx/benchmark/gradle Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,9 @@ private fun Project.getExecutableFile(compilation: KotlinJsIrCompilation): Provi
48
48
val kotlinTarget = compilation.target as KotlinJsIrTarget
49
49
val binary = kotlinTarget.binaries.executable(compilation)
50
50
.first { it.mode == KotlinJsBinaryMode .PRODUCTION } as JsIrBinary
51
+ val extension = if (kotlinTarget.platformType == KotlinPlatformType .wasm) " mjs" else " js"
51
52
val outputFileName = binary.linkTask.flatMap { task ->
52
- task.compilerOptions.moduleName.map { " $it .js " }
53
+ task.compilerOptions.moduleName.map { " $it .$extension " }
53
54
}
54
55
val destinationDir = binary.linkSyncTask.flatMap { it.destinationDirectory }
55
56
val executableFile = destinationDir.zip(outputFileName) { dir, fileName -> dir.resolve(fileName) }
You can’t perform that action at this time.
0 commit comments