Rename the libswift directory to SwiftCompilerSources

This commit is contained in:
Erik Eckstein
2021-12-16 18:45:26 +01:00
parent a0693c4649
commit 4beb94c2f9
39 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,43 @@
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "libswift",
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"
])]),
]
)