From 2f3e65b536b7433a271737225e4a8bdcc5ccc8c3 Mon Sep 17 00:00:00 2001 From: Eduardo Pinho Date: Sat, 26 Aug 2023 11:13:42 +0100 Subject: [PATCH] Tweak build.rs to build without gpu support --- faiss-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faiss-sys/build.rs b/faiss-sys/build.rs index b239331..aee4b76 100644 --- a/faiss-sys/build.rs +++ b/faiss-sys/build.rs @@ -68,7 +68,7 @@ fn link_cxx() { } } -#[cfg(all(feature = "static", feature = "gpu"))] +#[cfg(feature = "static")] fn cuda_lib_path() -> String { // look for CUDA_PATH in environment, // then CUDA_LIB_PATH,