Skip to content

Commit c0f1a5e

Browse files
committed
llama : allow building all tests on windows when not using shared libraries
1 parent 3637576 commit c0f1a5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
105105
endif ()
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)

0 commit comments

Comments
 (0)