@@ -1342,7 +1342,7 @@ package final class BuildOperationTester {
13421342 }
13431343
13441344 /// 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 {
13461346 let parameters = effectiveBuildParameters ( parameters, runDestination: runDestination)
13471347
13481348 let clientDelegate = clientDelegate ?? self . clientDelegate
@@ -1422,12 +1422,12 @@ package final class BuildOperationTester {
14221422 }
14231423
14241424 /// 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 {
14261426 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 ( ) } )
14271427 }
14281428
14291429 /// 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 {
14311431 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
14321432 // Check that there are no duplicate task identifiers - it is a fatal error if there are, unless `continueBuildingAfterErrors` is set.
14331433 var tasksByTaskIdentifier : [ TaskIdentifier : Task ] = [ : ]
@@ -1511,7 +1511,7 @@ package final class BuildOperationTester {
15111511 }
15121512
15131513 /// 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 {
15151515
15161516 func body( results: BuildResults ) throws -> Void {
15171517 results. consumeTasksMatchingRuleTypes ( excludedTasks)
@@ -1615,7 +1615,7 @@ package final class BuildOperationTester {
16151615 let operationParameters = buildRequest. parameters. replacing ( activeRunDestination: runDestination, activeArchitecture: nil )
16161616 let operationBuildRequest = buildRequest. with ( parameters: operationParameters, buildTargets: [ ] )
16171617
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 ( ) } )
16191619 }
16201620
16211621 package struct BuildGraphResult: Sendable {
0 commit comments