Skip to content

Commit e932ca0

Browse files
committed
Default to macOS 10.10 minimum deployment target again but allow it to be overridden
This reverts commit 5e968d4 since it caused breakage, but keeps the iOS 13 minimum deployment target.
1 parent 5e968d4 commit e932ca0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Package.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@
1414
import PackageDescription
1515
import class Foundation.ProcessInfo
1616

17+
let macOSPlatform: SupportedPlatform
18+
if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTTSC_MACOS_DEPLOYMENT_TARGET"] {
19+
macOSPlatform = .macOS(deploymentTarget)
20+
} else {
21+
macOSPlatform = .macOS(.v10_10)
22+
}
23+
1724
let package = Package(
1825
name: "swift-tools-support-core",
1926
platforms: [
20-
.macOS(.v10_15),
27+
macOSPlatform,
2128
.iOS(.v13)
2229
],
2330
products: [

0 commit comments

Comments
 (0)