summaryrefslogtreecommitdiff
path: root/lang/swift510/files/patch-llbuild_Package.swift
diff options
context:
space:
mode:
authorJordan Gordeev <jgopensource@proton.me>2025-06-22 11:11:40 +0200
committerKurt Jaeger <pi@FreeBSD.org>2025-06-22 11:11:40 +0200
commit95f54e562650032c2f9b27e9052d51de4237152f (patch)
tree671d027f2077d64753eac1141a3830482624cc42 /lang/swift510/files/patch-llbuild_Package.swift
parentnet-mgmt/p5-Net-CIDR: update to 0.26 (diff)
lang/swift510: New port
The Swift programming language -- a modern programming language with many great features. This port includes: * the Swift compiler * the Swift standard library * various tools * the Foundation framework * the Swift Package Manager (SwiftPM) * the run-time support that you need for running compiled programs PR: 286454 Reviewed-by: kib
Diffstat (limited to 'lang/swift510/files/patch-llbuild_Package.swift')
-rw-r--r--lang/swift510/files/patch-llbuild_Package.swift33
1 files changed, 33 insertions, 0 deletions
diff --git a/lang/swift510/files/patch-llbuild_Package.swift b/lang/swift510/files/patch-llbuild_Package.swift
new file mode 100644
index 000000000000..e4621f4e7a7b
--- /dev/null
+++ b/lang/swift510/files/patch-llbuild_Package.swift
@@ -0,0 +1,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]))]
+ ),
+ ],