Refactor daemon interface
This commit is contained in:
+2
-2
@@ -71,14 +71,14 @@ private object EmptyICReporter : ICReporter {
|
||||
}
|
||||
}
|
||||
|
||||
private inline fun withIC(fn: ()->Unit) {
|
||||
inline fun <R> withIC(fn: ()->R): R {
|
||||
val isEnabledBackup = IncrementalCompilation.isEnabled()
|
||||
val isExperimentalBackup = IncrementalCompilation.isExperimental()
|
||||
IncrementalCompilation.setIsEnabled(true)
|
||||
IncrementalCompilation.setIsExperimental(true)
|
||||
|
||||
try {
|
||||
fn()
|
||||
return fn()
|
||||
}
|
||||
finally {
|
||||
IncrementalCompilation.setIsEnabled(isEnabledBackup)
|
||||
|
||||
+1
-1
@@ -128,7 +128,7 @@ class KotlinStandaloneIncrementalCompilationTest : TestWithWorkingDir() {
|
||||
override fun report(message: ()->String) {
|
||||
}
|
||||
|
||||
override fun reportCompileIteration(sourceFiles: Iterable<File>, exitCode: ExitCode) {
|
||||
override fun reportCompileIteration(sourceFiles: Collection<File>, exitCode: ExitCode) {
|
||||
compiledSources.addAll(sourceFiles)
|
||||
resultExitCode = exitCode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user