@@ -260,6 +260,9 @@ public final class BuildRequest: CustomStringConvertible, Sendable {
260260 /// The quality-of-service to use for this request.
261261 public let qos : SWBQoS
262262
263+ /// Overrides the number of lanes in the llbuild scheduler.
264+ public let schedulerLaneWidthOverride : UInt32 ?
265+
263266 /// Optional path of a directory into which to write diagnostic information about the build plan.
264267 public let buildPlanDiagnosticsDirPath : Path ?
265268
@@ -282,7 +285,7 @@ public final class BuildRequest: CustomStringConvertible, Sendable {
282285 /// - Parameters:
283286 /// - parameters: The default build parameters, used in non-target specific contexts.
284287 /// - buildTargets: The list of targets which should be built
285- public init ( parameters: BuildParameters , buildTargets: [ BuildTargetInfo ] , dependencyScope: DependencyScope = . workspace, continueBuildingAfterErrors: Bool , hideShellScriptEnvironment: Bool = false , useParallelTargets: Bool , useImplicitDependencies: Bool , useDryRun: Bool , enableStaleFileRemoval: Bool ? = nil , showNonLoggedProgress: Bool = true , recordBuildBacktraces: Bool ? = nil , generatePrecompiledModulesReport: Bool ? = nil , buildDescriptionID: BuildDescriptionID ? = nil , qos: SWBQoS ? = nil , buildPlanDiagnosticsDirPath: Path ? = nil , buildCommand: BuildCommand ? = nil , schemeCommand: SchemeCommand ? = . launch, containerPath: Path ? = nil , jsonRepresentation: Data ? = nil ) {
288+ public init ( parameters: BuildParameters , buildTargets: [ BuildTargetInfo ] , dependencyScope: DependencyScope = . workspace, continueBuildingAfterErrors: Bool , hideShellScriptEnvironment: Bool = false , useParallelTargets: Bool , useImplicitDependencies: Bool , useDryRun: Bool , enableStaleFileRemoval: Bool ? = nil , showNonLoggedProgress: Bool = true , recordBuildBacktraces: Bool ? = nil , generatePrecompiledModulesReport: Bool ? = nil , buildDescriptionID: BuildDescriptionID ? = nil , qos: SWBQoS ? = nil , schedulerLaneWidthOverride : UInt32 ? = nil , buildPlanDiagnosticsDirPath: Path ? = nil , buildCommand: BuildCommand ? = nil , schemeCommand: SchemeCommand ? = . launch, containerPath: Path ? = nil , jsonRepresentation: Data ? = nil ) {
286289 self . parameters = parameters
287290 self . buildTargets = buildTargets
288291 self . dependencyScope = dependencyScope
@@ -298,6 +301,7 @@ public final class BuildRequest: CustomStringConvertible, Sendable {
298301 self . generatePrecompiledModulesReport = generatePrecompiledModulesReport ?? SWBFeatureFlag . generatePrecompiledModulesReport. value
299302 self . buildDescriptionID = buildDescriptionID
300303 self . qos = qos ?? UserDefaults . defaultRequestQoS
304+ self . schedulerLaneWidthOverride = schedulerLaneWidthOverride
301305 self . buildPlanDiagnosticsDirPath = buildPlanDiagnosticsDirPath
302306 self . buildCommand = buildCommand ?? . build( style: . buildOnly, skipDependencies: false )
303307 self . schemeCommand = schemeCommand
@@ -332,7 +336,7 @@ extension BuildRequest {
332336 case . buildRequest:
333337 dependencyScope = . buildRequest
334338 }
335- try self . init ( parameters: parameters, buildTargets: payload. configuredTargets. map { try BuildRequest . BuildTargetInfo ( from: $0, defaultParameters: parameters, workspace: workspace) } , dependencyScope: dependencyScope, continueBuildingAfterErrors: payload. continueBuildingAfterErrors, hideShellScriptEnvironment: payload. hideShellScriptEnvironment, useParallelTargets: payload. useParallelTargets, useImplicitDependencies: payload. useImplicitDependencies, useDryRun: payload. useDryRun, enableStaleFileRemoval: nil , showNonLoggedProgress: payload. showNonLoggedProgress, recordBuildBacktraces: payload. recordBuildBacktraces, generatePrecompiledModulesReport: payload. generatePrecompiledModulesReport, buildDescriptionID: payload. buildDescriptionID. map ( BuildDescriptionID . init) , qos: qos, buildPlanDiagnosticsDirPath: payload. buildPlanDiagnosticsDirPath, buildCommand: buildCommand, schemeCommand: payload. schemeCommand? . coreRepresentation, containerPath: payload. containerPath, jsonRepresentation: payload. jsonRepresentation)
339+ try self . init ( parameters: parameters, buildTargets: payload. configuredTargets. map { try BuildRequest . BuildTargetInfo ( from: $0, defaultParameters: parameters, workspace: workspace) } , dependencyScope: dependencyScope, continueBuildingAfterErrors: payload. continueBuildingAfterErrors, hideShellScriptEnvironment: payload. hideShellScriptEnvironment, useParallelTargets: payload. useParallelTargets, useImplicitDependencies: payload. useImplicitDependencies, useDryRun: payload. useDryRun, enableStaleFileRemoval: nil , showNonLoggedProgress: payload. showNonLoggedProgress, recordBuildBacktraces: payload. recordBuildBacktraces, generatePrecompiledModulesReport: payload. generatePrecompiledModulesReport, buildDescriptionID: payload. buildDescriptionID. map ( BuildDescriptionID . init) , qos: qos, schedulerLaneWidthOverride: payload. schedulerLaneWidthOverride, buildPlanDiagnosticsDirPath: payload. buildPlanDiagnosticsDirPath, buildCommand: buildCommand, schemeCommand: payload. schemeCommand? . coreRepresentation, containerPath: payload. containerPath, jsonRepresentation: payload. jsonRepresentation)
336340 }
337341
338342 /// Whether the build request _explicitly_ contains the specified `target`.
0 commit comments