Skip to content

Commit ec61a6b

Browse files
authored
Merge pull request #235 from apple/eng/conditionalize-deployment-target
Default to macOS 10.10 minimum deployment target again but allow it to be overridden
2 parents 5e968d4 + e932ca0 commit ec61a6b

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)