llama.cpp b11897:重构架构测试以支持 Windows 共享库构建
原标题:b11897
AI 摘要
llama.cpp 发布 b11897 版本,重构了 test-llama-archs 测试,使其不再链接内部 libllama 符号,从而修复了在 Windows 共享库(DLL)构建下无法编译的问题。改动包括在 llama-ext.h 中声明 llama_arch_* 包装函数、将模型保存测试改用公开的 llama_model_save_to_file(),并把多个测试移出 Windows/共享库限制。同时照例提供 macOS、Linux、Windows、Android 等多平台预编译包。
正文节选
<details open> tests : refactor test-llama-archs to not link internal libllama symbols (#30880) test-llama-archs included src/llama-arch.h and src/llama-model-saver.h, which prevented building on Windows with shared libraries since the used symbols are not exported from the DLL. - declare llama_arch_* wrappers around the internal llm_ arch query functions in the llama-ext.h staging header, together with llama_arch_kv_name() and llama_arch_supports_save() - slim llama_model_saver down to t