@@ -373,8 +373,9 @@ public struct SwiftDriverPayload: Serializable, TaskPayload, Encodable {
373
373
public let linkerResponseFilePath : Path ?
374
374
public let dependencyFilteringRootPath : Path ?
375
375
public let verifyScannerDependencies : Bool
376
+ public let linkerResponseFileFormat : ResponseFileFormat
376
377
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 ) {
378
379
self . uniqueID = uniqueID
379
380
self . compilerLocation = compilerLocation
380
381
self . moduleName = moduleName
@@ -391,12 +392,13 @@ public struct SwiftDriverPayload: Serializable, TaskPayload, Encodable {
391
392
self . casOptions = casOptions
392
393
self . reportRequiredTargetDependencies = reportRequiredTargetDependencies
393
394
self . linkerResponseFilePath = linkerResponseFilePath
395
+ self . linkerResponseFileFormat = linkerResponseFileFormat
394
396
self . dependencyFilteringRootPath = dependencyFilteringRootPath
395
397
self . verifyScannerDependencies = verifyScannerDependencies
396
398
}
397
399
398
400
public init ( from deserializer: any Deserializer ) throws {
399
- try deserializer. beginAggregate ( 18 )
401
+ try deserializer. beginAggregate ( 19 )
400
402
self . uniqueID = try deserializer. deserialize ( )
401
403
self . compilerLocation = try deserializer. deserialize ( )
402
404
self . moduleName = try deserializer. deserialize ( )
@@ -413,12 +415,13 @@ public struct SwiftDriverPayload: Serializable, TaskPayload, Encodable {
413
415
self . casOptions = try deserializer. deserialize ( )
414
416
self . reportRequiredTargetDependencies = try deserializer. deserialize ( )
415
417
self . linkerResponseFilePath = try deserializer. deserialize ( )
418
+ self . linkerResponseFileFormat = try deserializer. deserialize ( )
416
419
self . dependencyFilteringRootPath = try deserializer. deserialize ( )
417
420
self . verifyScannerDependencies = try deserializer. deserialize ( )
418
421
}
419
422
420
423
public func serialize< T> ( to serializer: T ) where T : Serializer {
421
- serializer. serializeAggregate ( 18 ) {
424
+ serializer. serializeAggregate ( 19 ) {
422
425
serializer. serialize ( self . uniqueID)
423
426
serializer. serialize ( self . compilerLocation)
424
427
serializer. serialize ( self . moduleName)
@@ -435,6 +438,7 @@ public struct SwiftDriverPayload: Serializable, TaskPayload, Encodable {
435
438
serializer. serialize ( self . casOptions)
436
439
serializer. serialize ( self . reportRequiredTargetDependencies)
437
440
serializer. serialize ( self . linkerResponseFilePath)
441
+ serializer. serialize ( self . linkerResponseFileFormat)
438
442
serializer. serialize ( self . dependencyFilteringRootPath)
439
443
serializer. serialize ( self . verifyScannerDependencies)
440
444
}
@@ -2560,7 +2564,7 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
2560
2564
let explicitModuleBuildEnabled = await swiftExplicitModuleBuildEnabled ( cbc. producer, cbc. scope, delegate)
2561
2565
let verifyScannerDependencies = explicitModuleBuildEnabled && cbc. scope. evaluate ( BuiltinMacros . SWIFT_DEPENDENCY_REGISTRATION_MODE) == . verifySwiftDependencyScanner
2562
2566
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)
2564
2568
}
2565
2569
2566
2570
func constructSwiftResponseFileTask( path: Path ) {
0 commit comments