File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -687,8 +687,8 @@ jobs:
687687 strategy :
688688 matrix :
689689 include :
690- - build : ' cpu-x64'
691- defines : ' -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake -DGGML_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DGGML_RPC=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DGGML_OPENMP =OFF'
690+ - build : ' cpu-x64 (static) '
691+ defines : ' -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake -DGGML_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DGGML_RPC=ON -DBUILD_SHARED_LIBS =OFF'
692692 - build : ' openblas-x64'
693693 defines : ' -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake -DGGML_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DGGML_RPC=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DGGML_OPENMP=OFF -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DBLAS_INCLUDE_DIRS="$env:RUNNER_TEMP/openblas/include" -DBLAS_LIBRARIES="$env:RUNNER_TEMP/openblas/lib/openblas.lib"'
694694 - build : ' vulkan-x64'
Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ if (LLAMA_LLGUIDANCE)
104104 llama_build_and_test(test -grammar-llguidance.cpp ARGS ${CMAKE_CURRENT_SOURCE_DIR} /../models/ggml-vocab-llama-bpe.gguf)
105105endif ()
106106
107- if (NOT WIN32 )
108- # these tests are disabled on Windows because they use internal functions not exported with LLAMA_API
107+ if (NOT WIN32 OR NOT BUILD_SHARED_LIBS )
108+ # these tests are disabled on Windows because they use internal functions not exported with LLAMA_API (when building with shared libraries)
109109 llama_build_and_test(test -sampling.cpp)
110110 llama_build_and_test(test -grammar-parser.cpp)
111111 llama_build_and_test(test -grammar-integration.cpp)
Original file line number Diff line number Diff line change 77//
88#include " chat.h"
99
10+ #include " log.h"
11+
1012#include " ../src/unicode.h"
1113#include " ../src/llama-grammar.h"
1214
@@ -1428,6 +1430,8 @@ static void test_msg_diffs_compute() {
14281430}
14291431
14301432int main (int argc, char ** argv) {
1433+ common_log_set_verbosity_thold (999 );
1434+
14311435 // try {
14321436#ifndef _WIN32
14331437 if (argc > 1 ) {
You can’t perform that action at this time.
0 commit comments