]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
cmake : simplify build info detection using standard variables (#17423)
authorAdrien Gallouët <redacted>
Thu, 4 Dec 2025 10:42:13 +0000 (11:42 +0100)
committerGitHub <redacted>
Thu, 4 Dec 2025 10:42:13 +0000 (12:42 +0200)
commit2a73f81f8a810783db5794256e5ba79f298adee7
tree7ea9e8bdae87dbee730f91c0ac7557d3924f28f9
parent7dba049b0707ae395c59b085c5fd52cae7b74fe0
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 <redacted>
cmake/build-info.cmake