Back to feed

b7268

Dec 4, 2025
Meta/llama.cppCLIvb7268

[!WARNING] Release Format Update: Linux releases will soon use .tar.gz archives instead of .zip. Please make the necessary changes to your deployment scripts.

cmake : simplify build info detection using standard variables (#17423)

The current approach has several drawbacks. Mostly, when cross-compiling, invoking the compiler binary directly to query the machine hardware can behave unexpectedly depending on the toolchain wrapper (using COMPILER_TARGET, CFLAGS, etc).

As CMake is the official tool to build llama.cpp, I propose to only rely on it to get those variables (CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR).

Signed-off-by: Adrien Gallouët angt@huggingface.co

macOS/iOS:

Linux:

Windows: