mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
44 lines
1.1 KiB
Swift
44 lines
1.1 KiB
Swift
// swift-tools-version:5.3
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "SwiftCompilerSources",
|
|
platforms: [
|
|
.macOS("10.9"),
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "Swift",
|
|
type: .static,
|
|
targets: ["SIL", "Optimizer", "ExperimentalRegex"]),
|
|
],
|
|
dependencies: [
|
|
],
|
|
// Note that all modules must be added to LIBSWIFT_MODULES in the top-level
|
|
// CMakeLists.txt file to get debugging working.
|
|
targets: [
|
|
.target(
|
|
name: "SIL",
|
|
dependencies: [],
|
|
swiftSettings: [SwiftSetting.unsafeFlags([
|
|
"-I", "../include/swift",
|
|
"-cross-module-optimization"
|
|
])]),
|
|
.target(
|
|
name: "ExperimentalRegex",
|
|
dependencies: [],
|
|
swiftSettings: [SwiftSetting.unsafeFlags([
|
|
"-I", "../include/swift",
|
|
"-cross-module-optimization"
|
|
])]),
|
|
.target(
|
|
name: "Optimizer",
|
|
dependencies: ["SIL", "ExperimentalRegex"],
|
|
swiftSettings: [SwiftSetting.unsafeFlags([
|
|
"-I", "../include/swift",
|
|
"-cross-module-optimization"
|
|
])]),
|
|
]
|
|
)
|