Skip to main content

Bootstrapping Buck2

To generate BUCK files for buck2's dependencies, we use reindeer.

Note that the resulting binary will be compiled without optimisations or jemalloc, so we recommend using the Cargo-produced binary in further development.

First, install reindeer with Cargo:

cargo install --locked --git reindeer

Next, run the following to buckify dependencies:

cd buck2/
reindeer --third-party-dir shim/third-party/rust buckify

Build buck2 with buck2:

buck2 build //:buck2