mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
As the _MatchingEngine module no longer contains the matching engine, this patch renames this module to describe its role more accurately. Because this module primarily contains the AST and the regex parsing logic, I propose we rename it to "_RegexParser". Also renames the ExperimentalRegex module in SwiftCompilerSources to _RegexParser for consistency. This would prevent errors if sources in _RegexParser used qualified lookup with the module name.
44 lines
1.0 KiB
Swift
44 lines
1.0 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", "_RegexParser"]),
|
|
],
|
|
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: "_RegexParser",
|
|
dependencies: [],
|
|
swiftSettings: [SwiftSetting.unsafeFlags([
|
|
"-I", "../include/swift",
|
|
"-cross-module-optimization"
|
|
])]),
|
|
.target(
|
|
name: "Optimizer",
|
|
dependencies: ["SIL", "_RegexParser"],
|
|
swiftSettings: [SwiftSetting.unsafeFlags([
|
|
"-I", "../include/swift",
|
|
"-cross-module-optimization"
|
|
])]),
|
|
]
|
|
)
|