summaryrefslogtreecommitdiff
path: root/lang/swift510/files/patch-llbuild_Package.swift
blob: e4621f4e7a7be3339309c3e19aaba83eb89395f2 (plain) (blame)
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
33
--- llbuild/Package.swift.orig	2024-01-09 06:44:05 UTC
+++ llbuild/Package.swift
@@ -71,6 +71,13 @@ let package = Package(
             exclude: []
         ),
 
+        // MARK: sqlite3 as a system library
+        .systemLibrary(
+            name: "LLBSQLite3",
+            path: "lib/LLBSQLite3",
+            pkgConfig: "sqlite3"
+        ),
+
         // MARK: Components
         
         .target(
@@ -80,7 +87,7 @@ let package = Package(
         ),
         .target(
             name: "llbuildCore",
-            dependencies: ["llbuildBasic"],
+            dependencies: ["llbuildBasic", "LLBSQLite3"],
             path: "lib/Core",
             linkerSettings: [.linkedLibrary("sqlite3")]
         ),
@@ -227,6 +234,7 @@ let package = Package(
             path: "lib/llvm/Support",
             linkerSettings: [
                 .linkedLibrary("m", .when(platforms: [.linux])),
+                .linkedLibrary("execinfo"),
                 .linkedLibrary("ncurses", .when(platforms: [.linux, .macOS, .android]))]
         ),
     ],