1 2 3 4
set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR loongarch64) set(CMAKE_CROSSCOMPILING_EMULATOR "qemu-loongarch64")