From 63ce8ae64e6bc415c05e64c657124abf0b0a22b5 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 12 Apr 2026 02:36:30 +0800 Subject: [PATCH] fix tool builds --- cmake/arm64-linux-clang.cmake | 17 ----------------- common/download.cpp | 16 +++++++--------- common/jinja/value.cpp | 2 +- 3 files changed, 8 insertions(+), 27 deletions(-) delete mode 100644 cmake/arm64-linux-clang.cmake diff --git a/cmake/arm64-linux-clang.cmake b/cmake/arm64-linux-clang.cmake deleted file mode 100644 index f16e280ec..000000000 --- a/cmake/arm64-linux-clang.cmake +++ /dev/null @@ -1,17 +0,0 @@ -set( CMAKE_SYSTEM_NAME Linux ) -set( CMAKE_SYSTEM_PROCESSOR arm64 ) - -set( target aarch64-linux-gnu ) - -set( CMAKE_C_COMPILER clang ) -set( CMAKE_CXX_COMPILER clang++ ) - -set( CMAKE_C_COMPILER_TARGET ${target} ) -set( CMAKE_CXX_COMPILER_TARGET ${target} ) - -set( arch_c_flags "-march=armv8.7-a -fvectorize -ffp-model=fast -fno-finite-math-only" ) -set( warn_c_flags "-Wno-format -Wno-unused-variable -Wno-unused-function -Wno-gnu-zero-variadic-macro-arguments" ) - -set( CMAKE_C_FLAGS_INIT "${arch_c_flags} ${warn_c_flags}" ) -set( CMAKE_CXX_FLAGS_INIT "${arch_c_flags} ${warn_c_flags}" ) - diff --git a/common/download.cpp b/common/download.cpp index 648c66c2f..5ce1c8b9e 100644 --- a/common/download.cpp +++ b/common/download.cpp @@ -954,10 +954,9 @@ std::vector common_list_cached_models() { // throw std::runtime_error("download functionality is not enabled in this build"); // } -common_download_model_result common_download_model(const common_params_model & model, - const std::string & bearer_token, - const common_download_model_opts & opts, - const common_header_list & headers) { +common_download_model_result common_download_model(const common_params_model & model, + const common_download_opts & opts, + bool download_mmproj) { throw std::runtime_error("download functionality is not enabled in this build"); } @@ -965,11 +964,10 @@ std::string common_docker_resolve_model(const std::string &) { throw std::runtime_error("download functionality is not enabled in this build"); } -int common_download_file_single(const std::string &, - const std::string &, - const std::string &, - bool, - const common_header_list &, bool) { +int common_download_file_single(const std::string & url, + const std::string & path, + const common_download_opts & opts, + bool skip_etag) { throw std::runtime_error("download functionality is not enabled in this build"); } diff --git a/common/jinja/value.cpp b/common/jinja/value.cpp index 8e86a715f..3929d90db 100644 --- a/common/jinja/value.cpp +++ b/common/jinja/value.cpp @@ -1,5 +1,5 @@ #include "runtime.h" -#include "unicode.h" +#include "../unicode.h" #include "value.h" // for converting from JSON to jinja values