@@ -373,8 +373,9 @@ public struct SwiftDriverPayload: Serializable, TaskPayload, Encodable {
373373 public let linkerResponseFilePath : Path ?
374374 public let dependencyFilteringRootPath : Path ?
375375 public let verifyScannerDependencies : Bool
376+ public let linkerResponseFileFormat : ResponseFileFormat
376377
377- internal init ( uniqueID: String , compilerLocation: LibSwiftDriver . CompilerLocation , moduleName: String , outputPrefix: String , tempDirPath: Path , explicitModulesTempDirPath: Path , variant: String , architecture: String , eagerCompilationEnabled: Bool , explicitModulesEnabled: Bool , commandLine: [ String ] , ruleInfo: [ String ] , isUsingWholeModuleOptimization: Bool , casOptions: CASOptions ? , reportRequiredTargetDependencies: BooleanWarningLevel , linkerResponseFilePath: Path ? , dependencyFilteringRootPath: Path ? , verifyScannerDependencies: Bool ) {
378+ internal init ( uniqueID: String , compilerLocation: LibSwiftDriver . CompilerLocation , moduleName: String , outputPrefix: String , tempDirPath: Path , explicitModulesTempDirPath: Path , variant: String , architecture: String , eagerCompilationEnabled: Bool , explicitModulesEnabled: Bool , commandLine: [ String ] , ruleInfo: [ String ] , isUsingWholeModuleOptimization: Bool , casOptions: CASOptions ? , reportRequiredTargetDependencies: BooleanWarningLevel , linkerResponseFilePath: Path ? , linkerResponseFileFormat : ResponseFileFormat , dependencyFilteringRootPath: Path ? , verifyScannerDependencies: Bool ) {
378379 self . uniqueID = uniqueID
379380 self . compilerLocation = compilerLocation
380381 self . moduleName = moduleName
@@ -391,12 +392,13 @@ public struct SwiftDriverPayload: Serializable, TaskPayload, Encodable {
391392 self . casOptions = casOptions
392393 self . reportRequiredTargetDependencies = reportRequiredTargetDependencies
393394 self . linkerResponseFilePath = linkerResponseFilePath
395+ self . linkerResponseFileFormat = linkerResponseFileFormat
394396 self . dependencyFilteringRootPath = dependencyFilteringRootPath
395397 self . verifyScannerDependencies = verifyScannerDependencies
396398 }
397399
398400 public init ( from deserializer: any Deserializer ) throws {
399- try deserializer. beginAggregate ( 18 )
401+ try deserializer. beginAggregate ( 19 )
400402 self . uniqueID = try deserializer. deserialize ( )
401403 self . compilerLocation = try deserializer. deserialize ( )
402404 self . moduleName = try deserializer. deserialize ( )
@@ -413,12 +415,13 @@ public struct SwiftDriverPayload: Serializable, TaskPayload, Encodable {
413415 self . casOptions = try deserializer. deserialize ( )
414416 self . reportRequiredTargetDependencies = try deserializer. deserialize ( )
415417 self . linkerResponseFilePath = try deserializer. deserialize ( )
418+ self . linkerResponseFileFormat = try deserializer. deserialize ( )
416419 self . dependencyFilteringRootPath = try deserializer. deserialize ( )
417420 self . verifyScannerDependencies = try deserializer. deserialize ( )
418421 }
419422
420423 public func serialize< T> ( to serializer: T ) where T : Serializer {
421- serializer. serializeAggregate ( 18 ) {
424+ serializer. serializeAggregate ( 19 ) {
422425 serializer. serialize ( self . uniqueID)
423426 serializer. serialize ( self . compilerLocation)
424427 serializer. serialize ( self . moduleName)
@@ -435,6 +438,7 @@ public struct SwiftDriverPayload: Serializable, TaskPayload, Encodable {
435438 serializer. serialize ( self . casOptions)
436439 serializer. serialize ( self . reportRequiredTargetDependencies)
437440 serializer. serialize ( self . linkerResponseFilePath)
441+ serializer. serialize ( self . linkerResponseFileFormat)
438442 serializer. serialize ( self . dependencyFilteringRootPath)
439443 serializer. serialize ( self . verifyScannerDependencies)
440444 }
@@ -2560,7 +2564,7 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
25602564 let explicitModuleBuildEnabled = await swiftExplicitModuleBuildEnabled ( cbc. producer, cbc. scope, delegate)
25612565 let verifyScannerDependencies = explicitModuleBuildEnabled && cbc. scope. evaluate ( BuiltinMacros . SWIFT_DEPENDENCY_REGISTRATION_MODE) == . verifySwiftDependencyScanner
25622566
2563- return SwiftDriverPayload ( uniqueID: uniqueID, compilerLocation: compilerLocation, moduleName: scope. evaluate ( BuiltinMacros . SWIFT_MODULE_NAME) , outputPrefix: scope. evaluate ( BuiltinMacros . TARGET_NAME) + compilationMode. moduleBaseNameSuffix, tempDirPath: tempDirPath, explicitModulesTempDirPath: explicitModulesTempDirPath, variant: variant, architecture: arch, eagerCompilationEnabled: eagerCompilationEnabled ( args: args, scope: scope, compilationMode: compilationMode, isUsingWholeModuleOptimization: isUsingWholeModuleOptimization) , explicitModulesEnabled: explicitModuleBuildEnabled, commandLine: commandLine, ruleInfo: ruleInfo, isUsingWholeModuleOptimization: isUsingWholeModuleOptimization, casOptions: casOptions, reportRequiredTargetDependencies: scope. evaluate ( BuiltinMacros . DIAGNOSE_MISSING_TARGET_DEPENDENCIES) , linkerResponseFilePath: linkerResponseFilePath, dependencyFilteringRootPath: cbc. producer. sdk? . path, verifyScannerDependencies: verifyScannerDependencies)
2567+ return SwiftDriverPayload ( uniqueID: uniqueID, compilerLocation: compilerLocation, moduleName: scope. evaluate ( BuiltinMacros . SWIFT_MODULE_NAME) , outputPrefix: scope. evaluate ( BuiltinMacros . TARGET_NAME) + compilationMode. moduleBaseNameSuffix, tempDirPath: tempDirPath, explicitModulesTempDirPath: explicitModulesTempDirPath, variant: variant, architecture: arch, eagerCompilationEnabled: eagerCompilationEnabled ( args: args, scope: scope, compilationMode: compilationMode, isUsingWholeModuleOptimization: isUsingWholeModuleOptimization) , explicitModulesEnabled: explicitModuleBuildEnabled, commandLine: commandLine, ruleInfo: ruleInfo, isUsingWholeModuleOptimization: isUsingWholeModuleOptimization, casOptions: casOptions, reportRequiredTargetDependencies: scope. evaluate ( BuiltinMacros . DIAGNOSE_MISSING_TARGET_DEPENDENCIES) , linkerResponseFilePath: linkerResponseFilePath, linkerResponseFileFormat: cbc. scope. evaluate ( BuiltinMacros . LINKER_RESPONSE_FILE_FORMAT) , dependencyFilteringRootPath: cbc. producer. sdk? . path, verifyScannerDependencies: verifyScannerDependencies)
25642568 }
25652569
25662570 func constructSwiftResponseFileTask( path: Path ) {
0 commit comments