From ca4a7bf9d99452b2ee1d014d49355150a02dbde0 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 13 May 2024 16:09:43 -0700 Subject: [PATCH] update --- crates/llama-cpp-server/build.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/llama-cpp-server/build.rs b/crates/llama-cpp-server/build.rs index f9790cefa37c..088fb9fe4fe2 100644 --- a/crates/llama-cpp-server/build.rs +++ b/crates/llama-cpp-server/build.rs @@ -1,7 +1,7 @@ use std::env; use cmake::Config; -use omnicopy_to_output::copy_to_output_by_path; +use omnicopy_to_output::copy_to_output; fn main() { let mut config = Config::new("../llama-cpp-bindings/llama.cpp"); @@ -56,8 +56,8 @@ fn main() { } let out = config.build(); - let server_binary = out.join("bin").join("server"); + let server_binary = + out.join("bin").join("server").display().to_string() + env::consts::EXE_SUFFIX; - copy_to_output_by_path(&server_binary) - .expect("Failed to copy server binary to output directory"); + copy_to_output(&server_binary).expect("Failed to copy server binary to output directory"); }