RISC-V and LoongArch

ScarletNX builds for 64-bit RISC-V (rv64gc) and LoongArch (LA64 v1.0) Linux. No machine of either has run it yet. CI cross-builds their AppImages for the nightlies, not for pull requests (ScarletNX-linux-riscv64 and ScarletNX-linux-loongarch64, the appimage-cross job in .github/workflows/build.yml) against an Arch system root of the architecture and runs them under qemu as installed, as it does PowerPC64 LE's (PowerPC64). The nightlies publish them when their jobs built, as PowerPC64 LE's.

Building

As PowerPC64 LE's, with the linux-riscv64-cross or linux-loongarch64-cross preset and an Arch root of the architecture in SNX_SYSROOT (its pkg-config files and its GCC runtime). scripts/appimage-sysroot.sh ROOT installs what the AppImage links into an unpacked Arch root, as CI does, which keeps the root it makes for a week. Its SDL3 is the root's package, which SNX_SYSTEM_SDL3 takes:

export SNX_SYSROOT=/path/to/the/root
cmake --preset linux-riscv64-cross -DSNX_SYSTEM_SDL3=ON
cmake --build --preset linux-riscv64-cross

CI packages the AppImages with this machine's appimagetool, which resolves mkdwarfs for this machine too, as the target's compresses many times slower under qemu (Build).

What differs from the other hosts


Made from docs/hosts/riscv-loongarch.md at 69237645142c. GPL-3.0-or-later.