File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Sources/SwiftDriver/Driver Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -859,12 +859,14 @@ extension Driver {
859859 recordedInputModificationDates: recordedInputModificationDates)
860860 return
861861 }
862-
863- try performTheBuild ( allJobs: jobs, forceResponseFiles: forceResponseFiles)
864-
865- buildRecordInfo? . writeBuildRecord (
866- jobs,
867- incrementalCompilationState? . skippedCompilationInputs)
862+ do {
863+ defer {
864+ buildRecordInfo? . writeBuildRecord (
865+ jobs,
866+ incrementalCompilationState? . skippedCompilationInputs)
867+ }
868+ try performTheBuild ( allJobs: jobs, forceResponseFiles: forceResponseFiles)
869+ }
868870
869871 // If requested, warn for options that weren't used by the driver after the build is finished.
870872 if parsedOptions. hasArgument ( . driverWarnUnusedOptions) {
You can’t perform that action at this time.
0 commit comments