Skip to content

LLM inference in C/C++

C++ ggml

tests: skip test-unicode build on win32/BUILD_SHARED_LIBS (#27336)

Jeff Bolz79fe79919436
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0db7fd9ef3..e517d2c635 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -116,8 +116,6 @@ function(llama_build_and_test source)
set_property(TEST ${TEST_TARGET} PROPERTY LABELS ${LLAMA_TEST_LABEL})
endfunction()
-llama_build_and_test(test-unicode.cpp)
-
# build test-tokenizer-0 target once and add many tests
llama_build(test-tokenizer-0.cpp)
@@ -154,6 +152,7 @@ llama_build(test-recurrent-state-rollback.cpp)
if (NOT WIN32 OR NOT BUILD_SHARED_LIBS)
# these tests are disabled on Windows because they use internal functions not exported with LLAMA_API (when building with shared libraries)
+ llama_build_and_test(test-unicode.cpp)
llama_build_and_test(test-sampling.cpp)
llama_build_and_test(test-reasoning-budget.cpp)
llama_build_and_test(test-grammar-parser.cpp)