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:
687
687
strategy :
688
688
matrix :
689
689
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'
692
692
- build : ' openblas-x64'
693
693
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"'
694
694
- build : ' vulkan-x64'
Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ if (LLAMA_LLGUIDANCE)
104
104
llama_build_and_test (test -grammar-llguidance.cpp ARGS ${CMAKE_CURRENT_SOURCE_DIR} /../models/ggml-vocab-llama-bpe.gguf )
105
105
endif ()
106
106
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)
109
109
llama_build_and_test (test -sampling.cpp )
110
110
llama_build_and_test (test -grammar-parser.cpp )
111
111
llama_build_and_test (test -grammar-integration.cpp )
Original file line number Diff line number Diff line change 7
7
//
8
8
#include " chat.h"
9
9
10
+ #include " log.h"
11
+
10
12
#include " ../src/unicode.h"
11
13
#include " ../src/llama-grammar.h"
12
14
@@ -1428,6 +1430,8 @@ static void test_msg_diffs_compute() {
1428
1430
}
1429
1431
1430
1432
int main (int argc, char ** argv) {
1433
+ common_log_set_verbosity_thold (999 );
1434
+
1431
1435
// try {
1432
1436
#ifndef _WIN32
1433
1437
if (argc > 1 ) {
You can’t perform that action at this time.
0 commit comments