-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPackage.swift
32 lines (30 loc) · 856 Bytes
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "Example",
products: [
.library(
name: "CPPExample",
targets: ["CPPExample"]),
.library(
name: "Example",
targets: ["Example"]),
],
targets: [
.target(
name: "CPPExample",
dependencies: []
),
.target(
name: "Example",
dependencies: ["CPPExample"],
// Note: These flags are to allow importing CPPXLA, it must be importted as
// @_implementationOnly or it will conflict with other headers.
swiftSettings: [.unsafeFlags(["-Xfrontend", "-enable-cxx-interop"])]
),
.testTarget(
name: "ExampleTests",
dependencies: ["Example"]
),
]
)