Learn Aero / Quick Start
Quick Start
Environment Requirements
| Rust toolchain (cargo/rustc) | Compiles the Aero compiler itself | 1.97+ |
| LLVM | Generates machine code | 22.x (llvm-sys 221) |
| MinGW gcc | Links AOT into a standalone executable | Any recent version |
If you only use
aero run(running programs via JIT), you can skip gcc; you only need it whenaero buildshould produce a standalone .exe.
Installation (Windows)
1. Install Rust — download rustup-init.exe from rustup.rs and accept all defaults:
cargo --version
rustc --version2. 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-msvc3. Install gcc (MSYS2) — in an MSYS2 terminal:
pacman -S mingw-w64-ucrt-x86_64-gccAdd C:\msys64\ucrt64\bin to PATH.
Building the Aero Compiler
scripts\build.batThis 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:
aeroOr Just Install the Official Package (Simpler)
| Windows | Download the ZIP → extract → double-click install.bat → run aero --help in a new terminal | |
| Linux | curl -sSL https://github.com/SereinCin/aero-lang/releases/download/v1.2.0/install_linux.sh | sh |
| macOS | Extract 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.