Skip to content

Installation

Jiang provides prebuilt compiler packages for macOS arm64 and Linux x86_64.

  • macOS on arm64 or Linux on x86_64.
  • 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 LLVM shared-library installation to run the packaged compiler. The Linux package requires glibc 2.34 or newer.

Download the archive for your host from the latest GitHub release, then unpack it.

Install Jiang:

./install.sh

By default this installs:

~/.jiang/versions/<version>
~/.jiang/bin/jiang
~/.jiang/bin/jiangc  # compatibility link

Add Jiang to your shell path if needed:

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

Check the compiler and LLVM runtime:

jiang --version

The first line should be:

jiang <version>

Source builds are contributor work. Their toolchain and bootstrap requirements change with the compiler, so follow the repository’s compiler development guide.

For an ordinary language installation, no source build is required.

Continue with Getting Started to compile a small program.