From e3c289b6a4dbe166f05607a7b2ec28438008e90a Mon Sep 17 00:00:00 2001 From: Kusaanko <39370373+kusaanko@users.noreply.github.com> Date: Fri, 28 Feb 2025 18:51:28 +0900 Subject: [PATCH] Fix wrong cfg! for openblas --- sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/build.rs b/sys/build.rs index 171a1b2..bcf858a 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -261,7 +261,7 @@ fn main() { println!("cargo:rustc-link-lib=static=ggml"); println!("cargo:rustc-link-lib=static=ggml-base"); println!("cargo:rustc-link-lib=static=ggml-cpu"); - if cfg!(target_os = "macos") || cfg!(target_os = "openblas") { + if cfg!(target_os = "macos") || cfg!(feature = "openblas") { println!("cargo:rustc-link-lib=static=ggml-blas"); } if cfg!(feature = "vulkan") {