fix android builds (missing zstd) by disabling zstd
This commit is contained in:
3
external/CMakeLists.txt
vendored
3
external/CMakeLists.txt
vendored
@@ -51,6 +51,9 @@ endif()
|
|||||||
#endif()
|
#endif()
|
||||||
|
|
||||||
if (NOT TARGET httplib::httplib)
|
if (NOT TARGET httplib::httplib)
|
||||||
|
# fails on android
|
||||||
|
set(HTTPLIB_USE_ZSTD_IF_AVAILABLE OFF CACHE BOOL "" FORCE)
|
||||||
|
|
||||||
FetchContent_Declare(httplib
|
FetchContent_Declare(httplib
|
||||||
GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git
|
GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git
|
||||||
GIT_TAG v0.22.0
|
GIT_TAG v0.22.0
|
||||||
|
@@ -34,7 +34,7 @@ bool LlamaCppWeb::isGood(void) {
|
|||||||
res->status != 200 ||
|
res->status != 200 ||
|
||||||
res->body.empty() ||
|
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"
|
res->get_header_value("Content-Type") != "application/json; charset=utf-8"
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
Reference in New Issue
Block a user