Skip to content

Install Flecha

Flecha is early-stage software. The most dependable installation path is currently a source build; tagged releases also publish platform archives and editor packages.

  • CMake 3.20 or newer
  • Ninja or another CMake generator
  • A supported C++23 compiler: Clang 17–23, GCC 13–16, or Apple Clang 16–17
  • LLVM 17–23 development libraries and tools
  • Git

See the supported toolchains for the tested platform matrix.

Terminal window
git clone https://github.com/segfaultcafe/flecha.git
cd flecha
make build

The build writes the compiler to build/flecha and the project tool to build/longbow.

Terminal window
cmake -S . -B build -G Ninja -DBUILD_TESTING=OFF
cmake --build build --parallel
Terminal window
build/flecha --version
build/flecha check examples/factorial.fl
build/flecha build examples/factorial.fl -o build/factorial
./build/factorial

The example prints Factorial: 120.

GitHub Releases include a VS Code extension named flecha-language-VERSION.vsix. Release archives also bundle Neovim support. Follow the editor installation guide for setup and verification.

Continue to Learn Flecha or browse the runnable examples.