Learn Aero / Quick Start

Quick Start

Environment Requirements

Rust toolchain (cargo/rustc)Compiles the Aero compiler itself1.97+
LLVMGenerates machine code22.x (llvm-sys 221)
MinGW gccLinks AOT into a standalone executableAny recent version

If you only use aero run (running programs via JIT), you can skip gcc; you only need it when aero build should produce a standalone .exe.

Installation (Windows)

1. Install Rust — download rustup-init.exe from rustup.rs and accept all defaults:

cargo --version
rustc --version

2. Install LLVM — install LLVM 22, then set the environment variable (the 221 in the name corresponds to 22.1, don't change it):

set LLVM_SYS_221_PREFIX=D:\Scripts\LLVM\clang+llvm-22.1.8-x86_64-pc-windows-msvc

3. Install gcc (MSYS2) — in an MSYS2 terminal:

pacman -S mingw-w64-ucrt-x86_64-gcc

Add C:\msys64\ucrt64\bin to PATH.

Building the Aero Compiler

scripts\build.bat

This compiles the whole workspace and finally produces the compiler binary at target\debug\aero.exe. After adding that directory to PATH, you can type aero from any directory:

setx PATH "%PATH%;项目目录\target\debug"

Verify:

aero

Or Just Install the Official Package (Simpler)

WindowsDownload the ZIP → extract → double-click install.bat → run aero --help in a new terminal
Linuxcurl -sSL https://github.com/SereinCin/aero-lang/releases/download/v1.2.0/install_linux.shsh
macOSExtract the tar.gz → run ./install_macos.sh

The release page also includes a SHA256SUMS.txt checksum file — it's recommended to verify integrity after downloading.

Aero 文档 · 基于 Aero 1.2.0 文档整理 · MIT
SereinTeam