tanakamasayuki has published ch32rv-clang on GitHub, under the CH32 RISC-V User Group. It’s a RISC-V-only build of clang and the lld linker, made from an upstream LLVM release and packed as a single archive per host system. The point is the CH32 Arduino core, ArduinoCore-CH32RV, which can install it through the Arduino Boards Manager.
Only the RISC-V backend is built. There’s no C library and no compiler runtime in the archive, so the core links newlib-nano and libgcc from the xPack GNU RISC-V Embedded GCC for now.
WCH’s QingKe “XW” compressed instructions are supported as LLVM’s Xwchc extension in LLVM 19 and later. Which chips have XW is tracked by the core, since using those instructions on a part without them, like the QingKe V3A or V4A, stops the program at the first one.
Releases are tagged by LLVM version and build number, such as v23.1.5-1, and a tag builds every host through GitHub Actions and publishes the archives with .sha256 files.…