Skip to content

Commit c825965

Browse files
ilgonmicqurbonzoda
authored andcommitted
[wasm] fix name of wasm target onto wasmJs
1 parent e00e1f9 commit c825965

File tree

14 files changed

+13
-13
lines changed

14 files changed

+13
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ benchmark {
112112
register("jvm")
113113
register("js")
114114
register("native")
115-
register("wasm") // Experimental
115+
register("wasmJs") // Experimental
116116
}
117117
}
118118
```
@@ -207,7 +207,7 @@ benchmark {
207207
// jsBenchmarksExecutor = JsBenchmarksExecutor.BuiltIn
208208
}
209209
register("native")
210-
register("wasm") // Experimental
210+
register("wasmJs") // Experimental
211211
}
212212
}
213213
```

examples/kotlin-multiplatform/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ kotlin {
1919
}
2020
js('jsIr', IR) { nodejs() }
2121
js('jsIrBuiltIn', IR) { nodejs() }
22-
wasm { d8() }
22+
wasm('wasmJs') { d8() }
2323
if (HostManager.host == KonanTarget.MACOS_X64.INSTANCE) macosX64('native')
2424
if (HostManager.host == KonanTarget.MACOS_ARM64.INSTANCE) macosArm64('native')
2525
if (HostManager.hostIsLinux) linuxX64('native')
@@ -40,7 +40,7 @@ kotlin {
4040

4141
jvmMain {}
4242

43-
wasmMain {}
43+
wasmJsMain {}
4444

4545
jsMain {
4646
jsIrMain.dependsOn(it)
@@ -117,7 +117,7 @@ benchmark {
117117
register("jsIrBuiltIn") {
118118
jsBenchmarksExecutor = JsBenchmarksExecutor.BuiltIn
119119
}
120-
register("wasm")
120+
register("wasmJs")
121121
register("native")
122122
}
123123
}

integration/src/test/kotlin/kotlinx/benchmark/integration/ConfigurationCacheTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class ConfigurationCacheTest : GradleTest() {
5858
@Ignore("https://youtrack.jetbrains.com/issue/KT-58256")
5959
fun testConfigurationCacheWasm() = runConfigurationCacheTest(
6060
"kotlin-multiplatform",
61-
listOf(":wasmBenchmark"),
62-
listOf(":compileKotlinWasm", ":wasmBenchmarkGenerate", ":compileWasmBenchmarkProductionExecutableKotlinWasm")
61+
listOf(":wasmJsBenchmark"),
62+
listOf(":compileKotlinWasmJs", ":wasmBenchmarkGenerate", ":compileWasmBenchmarkProductionExecutableKotlinWasmJs")
6363
)
6464
}
6565

integration/src/test/kotlin/kotlinx/benchmark/integration/ReportFormatTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ReportFormatTest : GradleTest() {
88
@Test
99
fun testReportFormatFileNames() {
1010
val formats = listOf(null, "json", "csv", "scsv", "text")
11-
val targets = listOf("jsIr", "wasm", "jvm", "native")
11+
val targets = listOf("jsIr", "wasmJs", "jvm", "native")
1212

1313
val runner = project("kotlin-multiplatform", true) {
1414
formats.forEach { format ->

integration/src/test/kotlin/kotlinx/benchmark/integration/SourceSetAsBenchmarkTargetTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class SourceSetAsBenchmarkTargetTest : GradleTest() {
99
fun testSupportForSourceSetsAsBenchmarkTargets() {
1010
val jvmBenchmark = "jvmBenchmark"
1111
val configuration = "jsonDefault"
12-
val targets = listOf("jsIr", "wasm", "jvm", "native", jvmBenchmark)
12+
val targets = listOf("jsIr", "wasmJs", "jvm", "native", jvmBenchmark)
1313

1414
val runner =
1515
project("kotlin-multiplatform", true) {

integration/src/test/resources/templates/kotlin-multiplatform/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kotlin {
66
compilations.create('benchmark') { associateWith(compilations.main) }
77
}
88
js('jsIr', IR) { nodejs() }
9-
wasm { d8() }
9+
wasm('wasmJs') { d8() }
1010

1111
if (HostManager.hostIsLinux) linuxX64('native')
1212
if (HostManager.hostIsMingw) mingwX64('native')
@@ -26,7 +26,7 @@ kotlin {
2626
}
2727
jsIrMain {
2828
}
29-
wasmMain {
29+
wasmJsMain {
3030
}
3131
nativeMain {
3232
}
@@ -37,7 +37,7 @@ benchmark {
3737
targets {
3838
register("jvm")
3939
register("jsIr")
40-
register("wasm")
40+
register("wasmJs")
4141
register("native")
4242
}
4343
}

runtime/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ kotlin {
4747

4848
jvm()
4949
js("jsIr", IR) { nodejs() }
50-
wasm { d8() }
50+
wasm("wasmJs") { d8() }
5151

5252
sourceSets.all {
5353
kotlin.srcDirs = ["$it.name/src"]

0 commit comments

Comments
 (0)