Aarch64 clang linux
Note: auto-generated from comments in: ./toolchain/aarch64-clang-linux.cmake
ARM 64-bit Clang/LLVM Toolchain
Cross-compiles for 64-bit ARM (aarch64) Linux targets (e.g. Raspberry Pi 5) using a generic clang/lld installation (e.g. an llvm.org release, Apple clang + lld, or a distribution clang) together with a target sysroot. Since clang is a native cross-compiler, the same toolchain file works on Linux and macOS hosts.
Requirements:
1. clang, clang++, and lld on the PATH, or their root specified with -DLLVM_TOOLS_PATH=... (or
the LLVM_TOOLS_PATH environment variable) pointing at an LLVM installation containing bin/.
2. A sysroot for the target (glibc, libstdc++, GCC runtime) specified with -DCMAKE_SYSROOT=...
or the AARCH64_SYSROOT environment variable. Such a sysroot may be extracted from an existing
GNU cross-toolchain (its libc tree plus libstdc++ headers and the lib/gcc runtime) or from
the target system itself.