Build on Linux for LoongArch64
ClickHouse has experimental support for LoongArch64
Build ClickHouse
The llvm version required for building must be greater than or equal to 19.1.0.
cd ClickHouse
mkdir build-loongarch64
CC=clang-19 CXX=clang++-19 cmake . -Bbuild-loongarch64 -G Ninja -DCMAKE_TOOLCHAIN_FILE=cmake/linux/toolchain-loongarch64.cmake
ninja -C build-loongarch64
The resulting binary will run only on Linux with the LoongArch64 CPU architecture.