jps: support multiplatform incremental compilation for jvm and js
- support common modules metadata compilation under flag (it is not required since all common source roots are included transitively for now) - introduce expect actual tracker in jps: move implementation from gradle to build-common - support js incremental compilation: move implementation from gradle to build-common
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
actual class X {
|
||||
actual fun foo(): Any = 0
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
actual class Y {
|
||||
actual fun foo(): Any = 0
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
actual class Z {
|
||||
actual fun foo(): Any = 0
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Compiling files:
|
||||
src/X.kt
|
||||
src/commonX.kt
|
||||
src/useX.kt
|
||||
End of files
|
||||
Exit code: SUCCESS
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Compiling files:
|
||||
src/Y.kt
|
||||
src/Z.kt
|
||||
src/commonY.kt
|
||||
src/commonZ.kt
|
||||
src/useYZ.kt
|
||||
End of files
|
||||
Exit code: SUCCESS
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
expect class X {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
expect fun useX(x: X): Unit
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
expect class Y {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
expect fun useY(y: Y): Unit
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
expect class Z {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
expect fun useZ(z: Z): Unit
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun dummy() {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
actual fun useX(x: X): Unit {
|
||||
x.foo()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
actual fun useY(y: Y): Unit {
|
||||
y.foo()
|
||||
}
|
||||
|
||||
actual fun useZ(z: Z): Unit {
|
||||
z.foo()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
actual class X {
|
||||
actual fun foo(): Any = 0
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
actual class Y {
|
||||
actual fun foo(): Any = 0
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
actual class Z {
|
||||
actual fun foo(): Any = 0
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Compiling files:
|
||||
src/X.kt
|
||||
src/commonX.kt
|
||||
src/useX.kt
|
||||
End of files
|
||||
Exit code: SUCCESS
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Compiling files:
|
||||
src/Y.kt
|
||||
src/Z.kt
|
||||
src/commonY.kt
|
||||
src/commonZ.kt
|
||||
src/useYZ.kt
|
||||
End of files
|
||||
Exit code: SUCCESS
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
expect class X {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
expect fun useX(x: X): Unit
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
expect class Y {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
expect fun useY(y: Y): Unit
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
expect class Z {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
expect fun useZ(z: Z): Unit
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun dummy() {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
actual fun useX(x: X): Unit {
|
||||
x.foo()
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
fun useX(x: String): Int =
|
||||
x.length
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
actual fun useY(y: Y): Unit {
|
||||
y.foo()
|
||||
}
|
||||
|
||||
actual fun useZ(z: Z): Unit {
|
||||
z.foo()
|
||||
}
|
||||
Reference in New Issue
Block a user