From b9402e028334ca533f4a398a978747dd76b726bd Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 13 May 2024 18:09:51 -0700 Subject: [PATCH] fix --- crates/llama-cpp-server/build.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/crates/llama-cpp-server/build.rs b/crates/llama-cpp-server/build.rs index 3c5cc54bda14..6c863bc49aed 100644 --- a/crates/llama-cpp-server/build.rs +++ b/crates/llama-cpp-server/build.rs @@ -61,17 +61,7 @@ fn main() { let out = config.build(); let server_binary = make_output_binary(&out, "server"); - let renamed_server_binary = if cfg!(target_os = "macos") { - make_output_binary(&out, "llama-server-metal") - } else if cfg!(feature = "cuda") { - make_output_binary(&out, "llama-server-cuda") - } else if cfg!(feature = "rocm") { - make_output_binary(&out, "llama-server-rocm") - } else if cfg!(feature = "vulkan") { - make_output_binary(&out, "llama-server-vulkan") - } else { - make_output_binary(&out, "llama-server") - }; + let renamed_server_binary = make_output_binary(&out, "llama-server"); std::fs::rename(server_binary, &renamed_server_binary).expect("Failed to rename server binary"); copy_to_output(&renamed_server_binary)