Skip to content

Installation

Install the prebuilt cnegc binary from GitHub Releases. No build tools required for checking and IR dumping. Native output needs Clang.

Download

Go to github.com/cnegative/cnegative/releases ↗ and pick the archive for your platform:

PlatformArchive
Linuxcnegc-<tag>-linux-x86_64.zip
macOScnegc-<tag>-macos-arm64.zip
Windowscnegc-<tag>-windows-x86_64.zip

Linux

shell
unzip cnegc-v0.5.2-linux-x86_64.zip
mkdir -p "$HOME/.local/bin"
cp release/cnegc/cnegc "$HOME/.local/bin/"
chmod +x "$HOME/.local/bin/cnegc"

If ~/.local/bin isn't on your PATH, add this to your shell config:

shell
export PATH="$HOME/.local/bin:$PATH"

macOS

shell
unzip cnegc-v0.5.2-macos-arm64.zip
mkdir -p "$HOME/.local/bin"
cp release/cnegc/cnegc "$HOME/.local/bin/"
chmod +x "$HOME/.local/bin/cnegc"

If ~/.local/bin isn't on your PATH, add this to your shell config:

shell
export PATH="$HOME/.local/bin:$PATH"

Windows

powershell
# Extract to a stable folder, e.g. C:\tools\cnegc\
# Add that folder to your user PATH
cnegc.exe  # verify it works

What's in the release

  • cnegc / cnegc.exe
  • LICENSE, README.md
  • docs/how-to-run-and-build.md

native output requires clang

check, ir, and llvm-ir need only cnegc. To emit objects or link binaries, you also need clang-18 or clang on your PATH.

After install

cnegative docs track the current v0.5.2 compiler surface.