Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,25 @@ 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 CMakeFiles = ["CMakeLists.txt"]

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