Skip to content

Commit 5b130e0

Browse files
authored
iOS 13 is aligned with macOS 10.15 (#488)
1 parent ec0146e commit 5b130e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Package.swift

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,25 @@ import PackageDescription
1515
import class Foundation.ProcessInfo
1616

1717
let macOSPlatform: SupportedPlatform
18+
let iOSPlatform: SupportedPlatform
1819
if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTTSC_MACOS_DEPLOYMENT_TARGET"] {
1920
macOSPlatform = .macOS(deploymentTarget)
2021
} else {
2122
macOSPlatform = .macOS(.v10_15)
2223
}
24+
if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTTSC_IOS_DEPLOYMENT_TARGET"] {
25+
iOSPlatform = .iOS(deploymentTarget)
26+
} else {
27+
iOSPlatform = .iOS(.v13)
28+
}
2329

2430
let CMakeFiles = ["CMakeLists.txt"]
2531

2632
let package = Package(
2733
name: "swift-tools-support-core",
2834
platforms: [
2935
macOSPlatform,
30-
.iOS(.v15)
36+
iOSPlatform,
3137
],
3238
products: [
3339
.library(

0 commit comments

Comments
 (0)