[IC] Register last-build.bin file in a transaction
KT-55995 Related
This commit is contained in:
committed by
Space Team
parent
ae75736864
commit
4d080c1a82
+5
-3
@@ -57,9 +57,11 @@ data class BuildInfo(val startTS: Long, val dependencyToAbiSnapshot: Map<String,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun write(buildInfo: BuildInfo, file: File) {
|
fun write(icContext: IncrementalCompilationContext, buildInfo: BuildInfo, file: File) {
|
||||||
ObjectOutputStream(FileOutputStream(file)).use {
|
icContext.transaction.write(file.toPath()) {
|
||||||
it.writeBuildInfo(buildInfo)
|
ObjectOutputStream(FileOutputStream(file)).use {
|
||||||
|
it.writeBuildInfo(buildInfo)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -558,7 +558,7 @@ abstract class IncrementalCompilerRunner<
|
|||||||
|
|
||||||
if (exitCode == ExitCode.OK) {
|
if (exitCode == ExitCode.OK) {
|
||||||
reporter.measure(BuildTime.STORE_BUILD_INFO) {
|
reporter.measure(BuildTime.STORE_BUILD_INFO) {
|
||||||
BuildInfo.write(currentBuildInfo, lastBuildInfoFile)
|
BuildInfo.write(icContext, currentBuildInfo, lastBuildInfoFile)
|
||||||
|
|
||||||
//write abi snapshot
|
//write abi snapshot
|
||||||
if (withAbiSnapshot) {
|
if (withAbiSnapshot) {
|
||||||
|
|||||||
Reference in New Issue
Block a user