Install Fly

All Platforms

Platform Architecture Version

Notes

  • A self-hosted release archive (0.14.x and later) is self-contained: bin/ holds fly, fly-lsp, fly-registry, the linker and lldb; lib/ holds the runtime, the standard library and its headers. Unpack it anywhere and put bin/ on your PATH.
  • Linux / macOS: tar -xzf fly-<version>-<platform>.tar.gz, then add the extracted bin/ directory to your PATH.
  • Windows: unzip the archive and add its bin\ folder to your PATH. No Visual Studio is needed to use Fly.
  • Every release publishes a SHA256SUMS file next to the archives.
  • Fly is currently in pre-release. Expect breaking changes between versions.

Build from Source

Each version builds from its own git tag, with the toolchain of its time. Pick the version to see its instructions.

Build Fly 0.15.2

Tag v0.15.2 on release/0.15.X, released 2026-11-24 · seed Fly 0.14.9 · how this version builds itself

Fly 0.15.2 builds itself in three stages, starting from the pinned seed Fly 0.14.9, the last 0.14.x release:

StageWhat happens
0downloads the pinned seed (Fly 0.14.9) and LLVM into build/
1the seed compiles runtime, std and compiler from this tree and links the first fly; the suites then run under it
2that fly recompiles the runtime and the compiler, builds the tools and runs every guard; build/stage2 is what a release ships

The seed version is pinned in ci/linux/stage0.sh and ci/windows/stage0.ps1. You don't need a system LLVM or sudo. Everything LLVM-related comes from the LLVM archive that stage 0 downloads into build/llvm (upstream LLVM 20.1.8, built by fly-lang/llvm).

Linux

Requires gcc and libc6-dev (for the C start-up objects), ar and objcopy.

git clone --branch v0.15.2 https://github.com/fly-lang/fly.git
cd fly
. ./ci/linux/stage0.sh        # sourced: it exports PATH and the library paths
./ci/linux/stage1.sh
./ci/linux/stage2.sh

macOS (Apple Silicon)

Requires the Xcode Command Line Tools (xcode-select --install) for the macOS SDK that programs link against. The same POSIX scripts as Linux are used; Homebrew is not needed.

git clone --branch v0.15.2 https://github.com/fly-lang/fly.git
cd fly
. ./ci/linux/stage0.sh
./ci/linux/stage1.sh
./ci/linux/stage2.sh

Windows

Requires PowerShell 7 (pwsh). The scripts do not run under Windows PowerShell 5.1. You don't need Visual Studio to build Fly or to use it, because programs link against a bundled llvm-mingw / UCRT sysroot.

git clone --branch v0.15.2 --config core.autocrlf=false https://github.com/fly-lang/fly.git
cd fly
. .\ci\windows\stage0.ps1
.\ci\windows\stage1.ps1
.\ci\windows\stage2.ps1

The result is build/stage2/bin/fly (fly.exe on Windows).

Useful switches

Environment variableEffect
FLY_BUNDLE_LLVM=1make each stage self-contained: LLVM, the linker and lldb next to fly (what CI and releases use)
FLY_STAGE1_TESTS=0skip the stage 1 suites for a faster local build
FLY_DEBUG_SYMBOLS=1DWARF in the stage 1 build
STAGE=1 / STAGE=2select the stage for a single ci/*/build_* or ci/*/test_* script

Run the tests

STAGE=2 ./ci/linux/test_runtime.sh     # the runtime layer
STAGE=2 ./ci/linux/test_std.sh         # the standard library
STAGE=2 ./ci/linux/test_compiler.sh    # the compiler and the driver

The Windows scripts have the same names under ci\windows\, with a .ps1 extension.