From a9c321c766ffca4b0dd4cfe2999e0195b831909f Mon Sep 17 00:00:00 2001 From: Marcus Dunn Date: Thu, 11 Jan 2024 20:44:10 -0800 Subject: [PATCH] specify cpp17 (fixed build on my mac with clang) --- Cargo.lock | 4 ++-- llama-cpp-sys-2/build.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8cf9cbe8..387a5e0e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -639,7 +639,7 @@ checksum = "c4cd1a83af159aa67994778be9070f0ae1bd732942279cabb14f86f986a21456" [[package]] name = "llama-cpp-2" -version = "0.1.5" +version = "0.1.6" dependencies = [ "criterion", "hf-hub", @@ -651,7 +651,7 @@ dependencies = [ [[package]] name = "llama-cpp-sys-2" -version = "0.1.5" +version = "0.1.6" dependencies = [ "bindgen", "cc", diff --git a/llama-cpp-sys-2/build.rs b/llama-cpp-sys-2/build.rs index c5b63551..220c03a0 100644 --- a/llama-cpp-sys-2/build.rs +++ b/llama-cpp-sys-2/build.rs @@ -39,6 +39,7 @@ fn main() { llama_build .cpp(true) + .flag_if_supported("--std=c++17") .include("llama.cpp"); if cublas_enabled {