llama.cpp/cmake
Adrien Gallouët 2a73f81f8a
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>
2025-12-04 12:42:13 +02:00
..
arm64-apple-clang.cmake Add apple arm to presets (#10134) 2024-11-02 15:35:31 -07:00
arm64-windows-llvm.cmake ggml : prevent builds with -ffinite-math-only (#7726) 2024-06-04 17:01:09 +10:00
build-info.cmake cmake : simplify build info detection using standard variables (#17423) 2025-12-04 12:42:13 +02:00
common.cmake cmake : enable building llama.cpp using system libggml (#12321) 2025-03-17 11:05:23 +02:00
git-vars.cmake llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
llama-config.cmake.in cmake: add hints for locating ggml on Windows using Llama find-package (#11466) 2025-01-28 19:22:06 -04:00
llama.pc.in build : fix llama.pc (#11658) 2025-02-06 13:08:13 +02:00
riscv64-spacemit-linux-gnu-gcc.cmake ggml: riscv: add riscv spacemit backend (#15288) 2025-09-29 17:50:44 +03:00
x64-windows-llvm.cmake llama : build windows releases with dl backends (#13220) 2025-05-04 14:20:49 +02:00