]> git.ipfire.org Git - thirdparty/ccache.git/commit
ci: Add a toolchain file for (cross) compilation for aarch64-w64-mingw32
authorMartin Storsjö <martin@martin.st>
Wed, 30 Jul 2025 09:05:22 +0000 (12:05 +0300)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 5 Aug 2025 17:38:01 +0000 (19:38 +0200)
commitd608b2aedbf60a326f48cfc3162dd3ece232556a
treef1edfeb3028db8e3e9d87c8734f2afced8150530
parentdd282820b12f088c28431af83990c376ed3f11e7
ci: Add a toolchain file for (cross) compilation for aarch64-w64-mingw32

Contrary to the existing toolchain files, this doesn't hardcode
CMAKE_FIND_ROOT_PATH to a location in /usr, but locates the
compiler from the path, and picks a sysroot adjacent to it - allowing
using a compiler installed in any path.

This uses a compiler named "${TOOLCHAIN_PREFIX}-gcc" - toolchains
such as llvm-mingw do provide cross tools named "-gcc" for
compatibility, even if they use Clang.
toolchains/aarch64-w64-mingw32.cmake [new file with mode: 0644]