Skip to content

Commit 6b581ea

Browse files
committed
Drop unnecessary default arguments
1 parent 78a3bbb commit 6b581ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SWBCore/PlatformRegistry.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ extension Platform {
297297
}
298298

299299
/// Determines if the platform natively supports Swift 6.2's Span type. If `false`, then the Swift Span back-compat lib needs to be copied into the app/framework's bundle.
300-
public func supportsSwiftSpanNatively(_ scope: MacroEvaluationScope, forceNextMajorVersion: Bool = false, considerTargetDeviceOSVersion: Bool = true) -> Bool? {
300+
public func supportsSwiftSpanNatively(_ scope: MacroEvaluationScope, forceNextMajorVersion: Bool, considerTargetDeviceOSVersion: Bool) -> Bool? {
301301
guard let deploymentTarget = self.deploymentTargetMacro else { return false }
302302

303303
// If we have target device info and its platform matches the build platform, compare the device OS version

Sources/SWBTaskConstruction/TaskProducers/OtherTaskProducers/SwiftStandardLibrariesTaskProducer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ final class SwiftStandardLibrariesTaskProducer: PhasedTaskProducer, TaskProducer
104104
let supportsConcurrencyNatively = context.platform?.supportsSwiftConcurrencyNatively(scope)
105105
let backDeploySwiftConcurrency = supportsConcurrencyNatively != nil && supportsConcurrencyNatively != true
106106

107-
let supportsSpanNatively = context.platform?.supportsSwiftSpanNatively(scope)
107+
let supportsSpanNatively = context.platform?.supportsSwiftSpanNatively(scope, forceNextMajorVersion: false, considerTargetDeviceOSVersion: true)
108108
let backDeploySwiftSpan = supportsSpanNatively != nil && supportsSpanNatively != true
109109

110110
let cbc = CommandBuildContext(producer: context, scope: scope, inputs: [ input ])

0 commit comments

Comments
 (0)