Skip to content

Commit

Permalink
Update to Kotlin 1.6.10-RC
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-yuan committed Dec 7, 2021
1 parent fb379bd commit 35681d7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ abstract class KspTaskJvm : KotlinCompile(KotlinJvmOptionsImpl()), KspTask {
args: K2JVMCompilerArguments,
sourceRoots: SourceRoots,
changedFiles: ChangedFiles,
taskOutputsBackup: TaskOutputsBackup?,
) {
if (isKspIncremental) {
if (isIntermoduleIncremental) {
Expand All @@ -587,7 +588,7 @@ abstract class KspTaskJvm : KotlinCompile(KotlinJvmOptionsImpl()), KspTask {
clearIncCache()
}
args.addChangedFiles(changedFiles)
super.callCompilerAsync(args, sourceRoots, changedFiles)
super.callCompilerAsync(args, sourceRoots, changedFiles, taskOutputsBackup)
}

override fun skipCondition(): Boolean = false
Expand Down Expand Up @@ -650,13 +651,14 @@ abstract class KspTaskJS @Inject constructor(
args: K2JSCompilerArguments,
sourceRoots: SourceRoots,
changedFiles: ChangedFiles,
taskOutputsBackup: TaskOutputsBackup?,
) {
if (!isKspIncremental || changedFiles.hasNonSourceChange()) {
clearIncCache()
} else {
args.addChangedFiles(changedFiles)
}
super.callCompilerAsync(args, sourceRoots, changedFiles)
super.callCompilerAsync(args, sourceRoots, changedFiles, taskOutputsBackup)
}
}

Expand Down Expand Up @@ -719,13 +721,14 @@ abstract class KspTaskMetadata : KotlinCompileCommon(KotlinMultiplatformCommonOp
args: K2MetadataCompilerArguments,
sourceRoots: SourceRoots,
changedFiles: ChangedFiles,
taskOutputsBackup: TaskOutputsBackup?,
) {
if (!isKspIncremental || changedFiles.hasNonSourceChange()) {
clearIncCache()
} else {
args.addChangedFiles(changedFiles)
}
super.callCompilerAsync(args, sourceRoots, changedFiles)
super.callCompilerAsync(args, sourceRoots, changedFiles, taskOutputsBackup)
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copied from kotlinc
org.gradle.jvmargs=-Duser.country=US -Dkotlin.daemon.jvm.options=-Xmx2200m -Dfile.encoding=UTF-8

kotlinBaseVersion=1.6.0
kotlinBaseVersion=1.6.10-RC
agpBaseVersion=7.0.0
intellijVersion=203.8084.24
junitVersion=4.12
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 35681d7

Please sign in to comment.