]> git.ipfire.org Git - thirdparty/ccache.git/commit
build(blake3): Assume aarch64 to be little-endian on CMake 3.18/3.19 (#1652) master
authorJ. Neuschäfer <j.ne@posteo.net>
Tue, 28 Oct 2025 18:48:23 +0000 (19:48 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Oct 2025 18:48:23 +0000 (19:48 +0100)
commit2278b06b9c32cc4ce1b72e5fa6b7f5c0ace4d993
tree50a1c86bc3fcb9897fe15ea5b83812ba7c29005b
parente5f198c8135ade7c8c10d94435ddbd210f89b4c1
build(blake3): Assume aarch64 to be little-endian on CMake 3.18/3.19 (#1652)

The recently introduced detection of big-endian AArch64 uses the
CMAKE_C_BYTE_ORDER variable, which was introduced in 3.20, but ccache
currently only requires CMake 3.18.

To avoid using an undefined variable, simply assume AArch64 to be
little-endian on CMake versions that don't define the aforementioned
variable. This is okay because big-endian AArch64 has few users and the
subset of them that use CMake 3.18/3.19 is likely negligible.

Reported-by: @awawa-dev
Fixes: https://github.com/ccache/ccache/issues/1651
src/third_party/blake3/CMakeLists.txt