We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb5b81a + c846501 commit 54238adCopy full SHA for 54238ad
Package.swift
@@ -2,10 +2,17 @@
2
import PackageDescription
3
import class Foundation.ProcessInfo
4
5
+let macOSPlatform: SupportedPlatform
6
+if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTPM_MACOS_DEPLOYMENT_TARGET"] {
7
+ macOSPlatform = .macOS(deploymentTarget)
8
+} else {
9
+ macOSPlatform = .macOS(.v10_10)
10
+}
11
+
12
let package = Package(
13
name: "swift-driver",
14
platforms: [
- .macOS(.v10_10),
15
+ macOSPlatform,
16
],
17
products: [
18
.executable(
0 commit comments