talira

Build system, successor to Buck

open sourceApache-2.0 OR MITself-hostablefree

Buck2 is a fast, hermetic, multi-language build system designed by Meta as the successor to Buck. It computes the critical path with minimal overhead (up to 2x faster than Buck1 in practice), enforces declared inputs when using remote execution, and expresses complex dependencies across languages in one graph.

Problems it solves

  • our build mixes Rust, C++, Python and OCaml and ties make, cargo and pip together
  • builds pass locally but fail elsewhere because of undeclared inputs
  • build overhead dominates even when there's nothing to rebuild
  • a build system that scales to a giant monorepo
  • remote execution with strict hermeticity
  • Bazel is too slow to start for our iteration loop
  • track dependencies accurately across many languages
  • fast incremental builds in a polyglot repo

Features

  • critical-path scheduling
  • hermetic with remote execution
  • multi-language
  • Starlark rules

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Buck2 does.

  1. Bazel a fast, scalable, multi-language and extensible build system
  2. Pants Scalable build system for monorepos in many languages

Compare Buck2 with the top 3