Skip to content

Commit f9b3d2c

Browse files
committed
Updated Library properties. Renamed dir structure
1 parent 40c75f7 commit f9b3d2c

24 files changed

+4
-22
lines changed

Package.swift

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,14 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "llvm-codegen",
7+
name: "llvm-api",
88
products: [
9-
.executable(name: "llvm-codegen", targets: ["llvm-codegen"]),
10-
],
11-
dependencies: [
12-
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.3.0"),
9+
.library(name: "llvm-api", targets: ["LLVM"]),
1310
],
1411
targets: [
15-
.executableTarget(
16-
name: "llvm-codegen",
17-
dependencies: [
18-
"LLVM",
19-
.product(
20-
name: "ArgumentParser",
21-
package: "swift-argument-parser"
22-
),
23-
],
24-
path: "llvm-codegen/cli"
25-
),
2612
.systemLibrary(
2713
name: "CLLVM",
28-
path: "llvm-codegen/CLLVM",
14+
path: "llvm-api/CLLVM",
2915
pkgConfig: "CLLVM",
3016
providers: [
3117
.brew(["llvm"]),
@@ -34,7 +20,7 @@ let package = Package(
3420
.target(
3521
name: "LLVM",
3622
dependencies: ["CLLVM"],
37-
path: "llvm-codegen/LLVM"
23+
path: "llvm-api/LLVM"
3824
),
3925
],
4026
cxxLanguageStandard: .cxx20

0 commit comments

Comments
 (0)