Skip to content

Installation

Jiang 0.4.9 provides a prebuilt macOS arm64 compiler package. This is the recommended way to try the language today.

  • macOS on arm64.
  • A host C compiler available as cc for 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.

Download jiang-0.4.9-macos-arm64.zip from the 0.4.9 GitHub release, then unpack it.

Install Jiang:

Terminal window
./install.sh

By default this installs:

~/.jiang/versions/0.4.9
~/.jiang/bin/jiangc

Add Jiang to your shell path if needed:

Terminal window
export PATH="$HOME/.jiang/bin:$PATH"

Check the compiler and LLVM runtime:

Terminal window
jiangc --version

The first line should be:

jiang 0.4.9

Source builds are mainly for compiler development. Clone the repository:

Terminal window
git clone https://github.com/jjcfun/jiang.git
cd jiang

Install LLVM:

Terminal window
bash ./script/install_llvm.sh

The 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:

Terminal window
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.sh

Continue with Getting Started to compile a small program.