Installation
Jiang 0.4.9 provides a prebuilt macOS arm64 compiler package. This is the recommended way to try the language today.
Requirements
Section titled “Requirements”- macOS on arm64.
- A host C compiler available as
ccfor final executable linking.
The release compiler statically links the LLVM libraries used by Jiang. You do not need a separate
libLLVM.dylib installation to run the packaged compiler.
Install a Release
Section titled “Install a Release”Download jiang-0.4.9-macos-arm64.zip from the
0.4.9 GitHub release, then unpack it.
Install Jiang:
./install.shBy default this installs:
~/.jiang/versions/0.4.9~/.jiang/bin/jiangcAdd Jiang to your shell path if needed:
export PATH="$HOME/.jiang/bin:$PATH"Verify
Section titled “Verify”Check the compiler and LLVM runtime:
jiangc --versionThe first line should be:
jiang 0.4.9Build From Source
Section titled “Build From Source”Source builds are mainly for compiler development. Clone the repository:
git clone https://github.com/jjcfun/jiang.gitcd jiangInstall LLVM:
bash ./script/install_llvm.shThe script installs Jiang’s managed LLVM 22 toolchain under
$JIANG_HOME/toolchains/llvm/<version>/<host>. If JIANG_HOME is not set, ~/.jiang is used.
Build and verify the compiler with the installed 0.4.9 release:
BOOTSTRAP_RELEASE_VERSION=0.4.9 \BOOTSTRAP_BIN="$HOME/.jiang/versions/0.4.9/bin/jiangc" \BOOTSTRAP_DEPTH=stable \VERIFY=full \bash ./script/build_next.shNext Step
Section titled “Next Step”Continue with Getting Started to compile a small program.