Skip to content

Commit

Permalink
Merge pull request #55 from weissi/jw-ios15
Browse files Browse the repository at this point in the history
require iOS 15 (which is what TSC does...)
  • Loading branch information
weissi authored Oct 22, 2024
2 parents 216fdde + 905fb34 commit 9a14bac
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,23 @@ import PackageDescription
import class Foundation.ProcessInfo

let macOSPlatform: SupportedPlatform
let iOSPlatform: SupportedPlatform
if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTTSC_MACOS_DEPLOYMENT_TARGET"] {
macOSPlatform = .macOS(deploymentTarget)
} else {
macOSPlatform = .macOS(.v10_15)
}
if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTTSC_IOS_DEPLOYMENT_TARGET"] {
iOSPlatform = .iOS(deploymentTarget)
} else {
iOSPlatform = .iOS(.v13)
}

let package = Package(
name: "swift-tools-support-async",
platforms: [
macOSPlatform
macOSPlatform,
iOSPlatform
],
products: [
.library(
Expand Down

0 comments on commit 9a14bac

Please sign in to comment.