Skip to content

Commit 7d9dc05

Browse files
authored
Merge pull request #206 from anagri/missing-unicode-symbol
Including unicode.cpp as part of C-build
2 parents 0d59098 + ce27172 commit 7d9dc05

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

llama-cpp-sys-2/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ include = [
3232
"/llama.cpp/llama.cpp",
3333
"/llama.cpp/llama.h",
3434
"/llama.cpp/unicode.h",
35+
"/llama.cpp/unicode.cpp",
3536
]
3637

3738
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

llama-cpp-sys-2/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ fn main() {
156156
.define("_XOPEN_SOURCE", Some("600"))
157157
.include("llama.cpp")
158158
.std("c++11")
159-
.file("llama.cpp/llama.cpp");
159+
.file("llama.cpp/llama.cpp")
160+
.file("llama.cpp/unicode.cpp");
160161

161162
// Remove debug log output from `llama.cpp`
162163
let is_release = env::var("PROFILE").unwrap() == "release";

0 commit comments

Comments
 (0)