@@ -314,7 +314,7 @@ public struct Driver {
314
314
/// Code & data for incremental compilation. Nil if not running in incremental mode.
315
315
/// Set during planning because needs the jobs to look at outputs.
316
316
@_spi ( Testing) public private( set) var incrementalCompilationState : IncrementalCompilationState ? = nil
317
-
317
+
318
318
/// The graph of explicit module dependencies of this module, if the driver has planned an explicit module build.
319
319
public private( set) var intermoduleDependencyGraph : InterModuleDependencyGraph ? = nil
320
320
@@ -890,7 +890,7 @@ public struct Driver {
890
890
let cwd = fileSystem. currentWorkingDirectory
891
891
return try cwd. map { try AbsolutePath ( validating: workingDirectoryArg. asSingle, relativeTo: $0) } ?? AbsolutePath ( validating: workingDirectoryArg. asSingle)
892
892
}
893
-
893
+
894
894
if let specifiedWorkingDir = self . workingDirectory {
895
895
// Apply the working directory to the parsed options if passed explicitly.
896
896
try Self . applyWorkingDirectory ( specifiedWorkingDir, to: & self . parsedOptions)
@@ -987,8 +987,8 @@ public struct Driver {
987
987
988
988
self . lto = Self . ltoKind ( & parsedOptions, diagnosticsEngine: diagnosticsEngine)
989
989
// Figure out the primary outputs from the driver.
990
- ( self . compilerOutputType, self . linkerOutputType) =
991
- Self . determinePrimaryOutputs ( & parsedOptions, targetTriple: self . frontendTargetInfo. target. triple,
990
+ ( self . compilerOutputType, self . linkerOutputType) =
991
+ Self . determinePrimaryOutputs ( & parsedOptions, targetTriple: self . frontendTargetInfo. target. triple,
992
992
driverKind: driverKind, diagnosticsEngine: diagnosticEngine)
993
993
994
994
// Multithreading.
@@ -1121,7 +1121,7 @@ public struct Driver {
1121
1121
}
1122
1122
var maybeNeedPCH = parsedOptions. hasFlag ( positive: . enableBridgingPch, negative: . disableBridgingPch, default: true )
1123
1123
if enableCaching && !maybeNeedPCH {
1124
- diagnosticsEngine. emit ( . warning( " -cache-compile-job cannot be used with -disable-bridging-pch, turn on PCH generation " ) ,
1124
+ diagnosticsEngine. emit ( . warning( " -disable-bridging-pch is ignored because compilation caching (-cache-compile-job) is used " ) ,
1125
1125
location: nil )
1126
1126
maybeNeedPCH = true
1127
1127
}
@@ -1980,12 +1980,12 @@ extension Driver {
1980
1980
guard let buildRecordInfo = self . buildRecordInfo, let incrementalCompilationState = self . incrementalCompilationState else {
1981
1981
return
1982
1982
}
1983
-
1983
+
1984
1984
let buildRecord = buildRecordInfo. buildRecord (
1985
1985
jobs, self . incrementalCompilationState? . blockingConcurrentMutationToProtectedState {
1986
1986
$0. skippedCompilationInputs
1987
1987
} )
1988
-
1988
+
1989
1989
do {
1990
1990
try incrementalCompilationState. writeDependencyGraph ( to: buildRecordInfo. dependencyGraphPath, buildRecord)
1991
1991
} catch {
0 commit comments