common, compiler: Upgrade to SystemPackage
For cross-platform support. Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
+7
-1
@@ -36,6 +36,7 @@ let package = Package(
|
||||
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
|
||||
.package(url: "https://github.com/swiftlang/swift-syntax", from: "602.0.0"),
|
||||
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
|
||||
.package(url: "https://github.com/apple/swift-system", from: "1.6.1"),
|
||||
],
|
||||
targets: [
|
||||
.macro(
|
||||
@@ -67,7 +68,11 @@ let package = Package(
|
||||
),
|
||||
.target(
|
||||
name: "Common",
|
||||
dependencies: ["Macros"],
|
||||
dependencies: [
|
||||
"Macros",
|
||||
.product(name: "SystemPackage", package: "swift-system"),
|
||||
|
||||
],
|
||||
swiftSettings: [.enableExperimentalFeature("CodeItemMacros")],
|
||||
),
|
||||
.target(
|
||||
@@ -90,6 +95,7 @@ let package = Package(
|
||||
name: "Tests",
|
||||
dependencies: [
|
||||
"P4Compiler", "P4Runtime", "P4Lang", "Macros", "TreeSitterExtensions", "Common",
|
||||
.product(name: "SystemPackage", package: "swift-system"),
|
||||
],
|
||||
swiftSettings: [.enableExperimentalFeature("CodeItemMacros")],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user