Installation
Jiang does not yet publish stable prebuilt releases. The recommended way to try it today is to build the compiler from source.
Requirements
Section titled “Requirements”- A C/C++ build toolchain.
- CMake.
- LLVM 21.1.x.
- A host C compiler available as
ccfor final executable linking.
The repository checks the LLVM version during configuration. If llvm-config --version is not 21.1.*, configuration fails early.
git clone https://github.com/jjcfun/jiang.gitcd jiangConfigure and Build
Section titled “Configure and Build”Prefer passing the LLVM installation explicitly:
cmake -S . -B build -DJIANG_LLVM_ROOT=/opt/homebrew/opt/llvm@21cmake --build buildOr point CMake at llvm-config:
LLVM_CONFIG=/opt/homebrew/opt/llvm@21/bin/llvm-config cmake -S . -B buildcmake --build buildAfter a successful build, the compiler is available at:
./build/jiangcVerify
Section titled “Verify”Run the sample test suite with the same LLVM toolchain:
LLVM_CONFIG=/opt/homebrew/opt/llvm@21/bin/llvm-config bash ./script/test.shNext Step
Section titled “Next Step”Continue with Getting Started to compile a small program.