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 --git https://github.com/facebookincubator/reindeer reindeer

Next, run the following to pull in dependencies and buckify:

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

Build buck2 with buck2:

buck2 build //:buck2