Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed May 13, 2024
1 parent 279bd47 commit ca4a7bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/llama-cpp-server/build.rs
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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");
}

0 comments on commit ca4a7bf

Please sign in to comment.