From a0d28fb516b1ea233d98004dbb0bb4a15357a415 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 17 Aug 2025 16:47:16 +0200 Subject: [PATCH] fix android builds (missing zstd) by disabling zstd --- external/CMakeLists.txt | 3 +++ src/solanaceae/llama-cpp-web/llama_cpp_web_impl.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 8685fd0..882f14e 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -51,6 +51,9 @@ endif() #endif() if (NOT TARGET httplib::httplib) + # fails on android + set(HTTPLIB_USE_ZSTD_IF_AVAILABLE OFF CACHE BOOL "" FORCE) + FetchContent_Declare(httplib GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git GIT_TAG v0.22.0 diff --git a/src/solanaceae/llama-cpp-web/llama_cpp_web_impl.cpp b/src/solanaceae/llama-cpp-web/llama_cpp_web_impl.cpp index 30fbfc5..f45765f 100644 --- a/src/solanaceae/llama-cpp-web/llama_cpp_web_impl.cpp +++ b/src/solanaceae/llama-cpp-web/llama_cpp_web_impl.cpp @@ -34,7 +34,7 @@ bool LlamaCppWeb::isGood(void) { res->status != 200 || res->body.empty() || ( - res->get_header_value("Content-Type") != "application/json" && + res->get_header_value("Content-Type") != "application/json" && res->get_header_value("Content-Type") != "application/json; charset=utf-8" ) ) {