☰

Building from Source

Building overview

Building Beef from source is not required for platforms that have binary distributions available (ie: Windows).

Source code is available at https://github.com/beefytech/Beef.

Bootstrapping

The core of the Beef compiler is written in C++, while the IDE and command-line BeefBuild build system is written in Beef itself. For bootstrapping purposes, Beef includes a minimal bootstrapping compiler whose sole job is to perform an initial BeefBuild build, which then performs a ‘proper’ build of itself.


Building on Windows

Requirements

Build Steps

The build results will be in IDE/dist


Building on Linux and macOS

Requirements

Additional requirements for building the IDE (Linux):

Build Steps

The build results will be in IDE/dist, and the IDE can be run with IDE/dist/BeefIDE. The build also runs the compiler test suite.

Other options: bin/build.sh clean removes previous build output, and no_ffi disables FFI support.

To install, run bin/install.sh (installs to /opt/BeefLang by default, or pass a destination path). The IDE is included if it was built.

The IDE is supported on Windows and Linux. On macOS, only the command-line tools such as BeefBuild are currently supported.