mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-22 21:23:02 +01:00
23 lines
1.2 KiB
TOML
23 lines
1.2 KiB
TOML
# Windows builds link the C and C++ runtimes statically, so hex.exe starts on
|
|
# a clean PC without the Visual C++ Redistributable.
|
|
[target.x86_64-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
[target.aarch64-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
# transcribe-cpp-sys reads CMAKE_ARGS beside TRANSCRIBE_CMAKE_ARGS, which stays
|
|
# free for per-build flags such as -DGGML_NATIVE=OFF.
|
|
#
|
|
# transcribe-cpp's CMake build defaults to the DLL runtime (/MD) even when Rust
|
|
# links statically, so pin its MSVC runtime to match. Compilers other than MSVC
|
|
# ignore this define.
|
|
#
|
|
# Every catalog model stores only f32, f16, q8_0, and (the National Libraries'
|
|
# NB-Whisper and KB-Whisper Medium whisper.cpp files) q5_0 tensors and none
|
|
# uses MUL_MAT_ID, so the Vulkan backend embeds shaders for just those instead
|
|
# of every type. ggml aborts a Vulkan run whose weights use any other type, so
|
|
# add a type here before the catalog gains a model that needs it
|
|
# (`gguf_artifacts_are_q8_0_for_the_vulkan_shader_subset` guards the catalog).
|
|
[env]
|
|
CMAKE_ARGS = "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DGGML_VULKAN_SHADER_TYPES=f32,f16,q8_0,q5_0 -DGGML_VULKAN_MUL_MAT_ID=OFF"
|