CH32V307 : Full llvm/clang toolchain

 Clang /LLVM can be a bit complicated to build especially if you want to use it with riscv32+picolibc.


There is an  arm toolchain build project to build it for arm cores,.

Fortunately,  it is easy to patch to build for rv32imac.

I posted the patched version on github

Checkout the project

then

ln -s $PWD/build/_deps/llvmproject-src/llvm/lib lib

then

mkdir build && cd build && cmake  -G Ninja .. && ninja && ninja package-llvm-toolchain

You end up with a full blown LLVM C/C++ toolchain in LLVM.....tar.gz

Comments

Popular posts from this blog

Component tester with STM32 : Part 1 ADC, Resistor

Fixing the INA3221

INA3221, weird wiring