@@ -1342,7 +1342,7 @@ package final class BuildOperationTester {
1342
1342
}
1343
1343
1344
1344
/// Construct the build description for the given build parameters, and check it.
1345
- @discardableResult package func checkBuildDescription< T> ( _ parameters: BuildParameters? = nil , runDestination: SWBProtocol . RunDestinationInfo? = . macOS , buildRequest inputBuildRequest: BuildRequest? = nil , buildCommand: BuildCommand? = nil , schemeCommand: SchemeCommand? = . launch, persistent: Bool = false , serial: Bool = false , signableTargets: Set< String> = [ ] , signableTargetInputs: [ String: ProvisioningTaskInputs] = [ : ] , clientDelegate: ( any ClientDelegate ) ? = nil , workspaceContext: WorkspaceContext? = nil , sourceLocation: SourceLocation = #_sourceLocation, body: ( BuildDescriptionResults) async throws -> T) async throws -> T {
1345
+ @discardableResult package func checkBuildDescription< T> ( _ parameters: BuildParameters? = nil , runDestination: SWBProtocol . RunDestinationInfo? , buildRequest inputBuildRequest: BuildRequest? = nil , buildCommand: BuildCommand? = nil , schemeCommand: SchemeCommand? = . launch, persistent: Bool = false , serial: Bool = false , signableTargets: Set< String> = [ ] , signableTargetInputs: [ String: ProvisioningTaskInputs] = [ : ] , clientDelegate: ( any ClientDelegate ) ? = nil , workspaceContext: WorkspaceContext? = nil , sourceLocation: SourceLocation = #_sourceLocation, body: ( BuildDescriptionResults) async throws -> T) async throws -> T {
1346
1346
let parameters = effectiveBuildParameters ( parameters, runDestination: runDestination)
1347
1347
1348
1348
let clientDelegate = clientDelegate ?? self . clientDelegate
@@ -1422,12 +1422,12 @@ package final class BuildOperationTester {
1422
1422
}
1423
1423
1424
1424
/// Construct the tasks for the given build parameters, and test the result.
1425
- @discardableResult package func checkBuild< T> ( _ name: String? = nil , parameters: BuildParameters? = nil , runDestination: SWBProtocol . RunDestinationInfo? = . macOS , buildRequest inputBuildRequest: BuildRequest? = nil , buildCommand: BuildCommand? = nil , schemeCommand: SchemeCommand? = . launch, persistent: Bool = false , serial: Bool = false , buildOutputMap: [ String: String] ? = nil , signableTargets: Set< String> = [ ] , signableTargetInputs: [ String: ProvisioningTaskInputs] = [ : ] , clientDelegate: ( any ClientDelegate ) ? = nil , sourceLocation: SourceLocation = #_sourceLocation, body: ( BuildResults) async throws -> T) async throws -> T {
1425
+ @discardableResult package func checkBuild< T> ( _ name: String? = nil , parameters: BuildParameters? = nil , runDestination: SWBProtocol . RunDestinationInfo? , buildRequest inputBuildRequest: BuildRequest? = nil , buildCommand: BuildCommand? = nil , schemeCommand: SchemeCommand? = . launch, persistent: Bool = false , serial: Bool = false , buildOutputMap: [ String: String] ? = nil , signableTargets: Set< String> = [ ] , signableTargetInputs: [ String: ProvisioningTaskInputs] = [ : ] , clientDelegate: ( any ClientDelegate ) ? = nil , sourceLocation: SourceLocation = #_sourceLocation, body: ( BuildResults) async throws -> T) async throws -> T {
1426
1426
try await checkBuild ( name, parameters: parameters, runDestination: runDestination, buildRequest: inputBuildRequest, buildCommand: buildCommand, schemeCommand: schemeCommand, persistent: persistent, serial: serial, buildOutputMap: buildOutputMap, signableTargets: signableTargets, signableTargetInputs: signableTargetInputs, clientDelegate: clientDelegate, sourceLocation: sourceLocation, body: body, performBuild: { await $0. buildWithTimeout ( ) } )
1427
1427
}
1428
1428
1429
1429
/// Construct the tasks for the given build parameters, and test the result.
1430
- @discardableResult package func checkBuild< T> ( _ name: String? = nil , parameters: BuildParameters? = nil , runDestination: RunDestinationInfo? = . macOS , buildRequest inputBuildRequest: BuildRequest? = nil , operationBuildRequest: BuildRequest? = nil , buildCommand: BuildCommand? = nil , schemeCommand: SchemeCommand? = . launch, persistent: Bool = false , serial: Bool = false , buildOutputMap: [ String: String] ? = nil , signableTargets: Set< String> = [ ] , signableTargetInputs: [ String: ProvisioningTaskInputs] = [ : ] , clientDelegate: ( any ClientDelegate ) ? = nil , sourceLocation: SourceLocation = #_sourceLocation, body: ( BuildResults) async throws -> T, performBuild: @escaping ( any BuildSystemOperation ) async throws -> Void) async throws -> T {
1430
+ @discardableResult package func checkBuild< T> ( _ name: String? = nil , parameters: BuildParameters? = nil , runDestination: RunDestinationInfo? , buildRequest inputBuildRequest: BuildRequest? = nil , operationBuildRequest: BuildRequest? = nil , buildCommand: BuildCommand? = nil , schemeCommand: SchemeCommand? = . launch, persistent: Bool = false , serial: Bool = false , buildOutputMap: [ String: String] ? = nil , signableTargets: Set< String> = [ ] , signableTargetInputs: [ String: ProvisioningTaskInputs] = [ : ] , clientDelegate: ( any ClientDelegate ) ? = nil , sourceLocation: SourceLocation = #_sourceLocation, body: ( BuildResults) async throws -> T, performBuild: @escaping ( any BuildSystemOperation ) async throws -> Void) async throws -> T {
1431
1431
try await checkBuildDescription ( parameters, runDestination: runDestination, buildRequest: inputBuildRequest, buildCommand: buildCommand, schemeCommand: schemeCommand, persistent: persistent, serial: serial, signableTargets: signableTargets, signableTargetInputs: signableTargetInputs, clientDelegate: clientDelegate) { results throws in
1432
1432
// Check that there are no duplicate task identifiers - it is a fatal error if there are, unless `continueBuildingAfterErrors` is set.
1433
1433
var tasksByTaskIdentifier : [ TaskIdentifier : Task ] = [ : ]
@@ -1511,7 +1511,7 @@ package final class BuildOperationTester {
1511
1511
}
1512
1512
1513
1513
/// Ensure that the build is a null build.
1514
- package func checkNullBuild( _ name: String? = nil , parameters: BuildParameters? = nil , runDestination: RunDestinationInfo? = . macOS , buildRequest inputBuildRequest: BuildRequest? = nil , buildCommand: BuildCommand? = nil , schemeCommand: SchemeCommand? = . launch, persistent: Bool = false , serial: Bool = false , buildOutputMap: [ String: String] ? = nil , signableTargets: Set< String> = [ ] , signableTargetInputs: [ String: ProvisioningTaskInputs] = [ : ] , clientDelegate: ( any ClientDelegate ) ? = nil , excludedTasks: Set< String> = [ " ClangStatCache " , " LinkAssetCatalogSignature " ] , diagnosticsToValidate: Set< DiagnosticKind> = [ . note, . error, . warning] , sourceLocation: SourceLocation = #_sourceLocation) async throws {
1514
+ package func checkNullBuild( _ name: String? = nil , parameters: BuildParameters? = nil , runDestination: RunDestinationInfo? , buildRequest inputBuildRequest: BuildRequest? = nil , buildCommand: BuildCommand? = nil , schemeCommand: SchemeCommand? = . launch, persistent: Bool = false , serial: Bool = false , buildOutputMap: [ String: String] ? = nil , signableTargets: Set< String> = [ ] , signableTargetInputs: [ String: ProvisioningTaskInputs] = [ : ] , clientDelegate: ( any ClientDelegate ) ? = nil , excludedTasks: Set< String> = [ " ClangStatCache " , " LinkAssetCatalogSignature " ] , diagnosticsToValidate: Set< DiagnosticKind> = [ . note, . error, . warning] , sourceLocation: SourceLocation = #_sourceLocation) async throws {
1515
1515
1516
1516
func body( results: BuildResults ) throws -> Void {
1517
1517
results. consumeTasksMatchingRuleTypes ( excludedTasks)
@@ -1615,7 +1615,7 @@ package final class BuildOperationTester {
1615
1615
let operationParameters = buildRequest. parameters. replacing ( activeRunDestination: runDestination, activeArchitecture: nil )
1616
1616
let operationBuildRequest = buildRequest. with ( parameters: operationParameters, buildTargets: [ ] )
1617
1617
1618
- return try await checkBuild ( buildRequest: buildRequest, operationBuildRequest: operationBuildRequest, persistent: persistent, sourceLocation: sourceLocation, body: body, performBuild: { await $0. buildWithTimeout ( ) } )
1618
+ return try await checkBuild ( runDestination : nil , buildRequest: buildRequest, operationBuildRequest: operationBuildRequest, persistent: persistent, sourceLocation: sourceLocation, body: body, performBuild: { await $0. buildWithTimeout ( ) } )
1619
1619
}
1620
1620
1621
1621
package struct BuildGraphResult: Sendable {
0 commit comments