Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed May 14, 2024
1 parent fb4a8d3 commit b9402e0
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions crates/llama-cpp-server/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b9402e0

Please sign in to comment.