aboutsummaryrefslogtreecommitdiffstats
path: root/misc/shimmy/files/llama-cpp-rs/patch-llama-cpp-sys-2_build.rs
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
commit2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch)
tree25f0138e1af8902b92dacc8cce09b267447c17db /misc/shimmy/files/llama-cpp-rs/patch-llama-cpp-sys-2_build.rs
parentf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff)
parent1a30da80670973368b399f2b01fe9c04b91a1273 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'misc/shimmy/files/llama-cpp-rs/patch-llama-cpp-sys-2_build.rs')
-rw-r--r--misc/shimmy/files/llama-cpp-rs/patch-llama-cpp-sys-2_build.rs38
1 files changed, 0 insertions, 38 deletions
diff --git a/misc/shimmy/files/llama-cpp-rs/patch-llama-cpp-sys-2_build.rs b/misc/shimmy/files/llama-cpp-rs/patch-llama-cpp-sys-2_build.rs
deleted file mode 100644
index de8f6436d05a..000000000000
--- a/misc/shimmy/files/llama-cpp-rs/patch-llama-cpp-sys-2_build.rs
+++ /dev/null
@@ -1,38 +0,0 @@
---- llama-cpp-sys-2/build.rs.orig 2025-09-12 14:16:40 UTC
-+++ llama-cpp-sys-2/build.rs
-@@ -20,6 +20,7 @@ enum TargetOs {
- Apple(AppleVariant),
- Linux,
- Android,
-+ FreeBSD,
- }
-
- macro_rules! debug_log {
-@@ -55,6 +56,8 @@ fn parse_target_os() -> Result<(TargetOs, String), Str
- Ok((TargetOs::Android, target))
- } else if target.contains("linux") {
- Ok((TargetOs::Linux, target))
-+ } else if target.contains("freebsd") {
-+ Ok((TargetOs::FreeBSD, target))
- } else {
- Err(target)
- }
-@@ -632,7 +635,7 @@ fn main() {
- config.cflag("/FS");
- config.cxxflag("/FS");
- }
-- TargetOs::Linux => {
-+ TargetOs::Linux | TargetOs::FreeBSD => {
- println!("cargo:rustc-link-lib=vulkan");
- }
- _ => (),
-@@ -738,6 +741,9 @@ fn main() {
- }
- TargetOs::Linux => {
- println!("cargo:rustc-link-lib=dylib=stdc++");
-+ }
-+ TargetOs::FreeBSD => {
-+ println!("cargo:rustc-link-lib=dylib=c++");
- }
- TargetOs::Apple(variant) => {
- println!("cargo:rustc-link-lib=framework=Foundation");