Skip to content

Build Systems ​

A breadth-first survey of build-system engines — how they schedule tasks, decide what is dirty, discover dependencies, store and share outputs, sandbox actions, and distribute work — across the academic literature, twenty industry rows (sixteen grid engines, one deliberately off-grid system, and three that are not engines at all), and the Nix ecosystem's experiment with making the build graph itself dynamic. Fourteen synthesis pages then re-cut the same evidence along the axes a build-engine designer actually faces: sandbox overhead, traced dependencies, semantic caching, daemon compilers, CAS eviction, reproducibility, and cryptographic provenance. The survey informs the Sparkles task-DAG work in sparkles:build-primitives and any future dub build engine.

This is the master index for the build-systems research tree. Each row links to a deep-dive written against the system's own source tree at a pinned commit, or the paper's own text; where this index summarizes a system, the deep-dive is the source of truth. The sibling Monorepo & Workspace Tooling survey covers thirteen of the same tools from the workspace/orchestration side; this tree covers their engines and cross-links rather than repeating that treatment.

This survey answers six questions:

  1. Vocabulary — what is a scheduler, a rebuilder, a verifying or constructive trace, early cutoff, a shallow build? See concepts.
  2. What the theory says — which scheduler × rebuilder combinations are correct, minimal, cloud-capable, or uninhabited, and what changes when dependencies are dynamic? See the Foundations rows below.
  3. How twenty industry rows answer the six spine dimensions — task model, rebuilding, discovery, store, hermeticity, distribution. Three of the rows are not engines: GN and Meson generate a Ninja graph, and Boba is an in-tree Bazel integration with no standalone repository. See the master catalog and its taxonomies.
  4. What Nix changes when the graph is a value — derivations, dynamic derivations, and the projects rebuilding Ninja-shaped graphs inside the store. See the Nix rows below.
  5. Where the field's open problems sit — the fourteen theme pages.
  6. What Sparkles should investigate — the application analysis separates its branch-specific baseline and workload questions from the research-only comparison.

NOTE

The catalog's reviewed labels record source/citation review and the documentation-build gate, not executable reproduction of every claim. The method and limits explain the evidence categories and selection bias. The comparison records research findings, assumptions and counterexamples; behavioral evidence records a small executable check of selected mechanisms. Dates marked ~ are approximate.

Last reviewed: November 4, 2026 (navigation and synthesis scope; catalog source pins unchanged)


Master Catalog ​

Scheduler and Rebuilder use the concepts vocabulary (topological/restarting/suspending × dirty-bit/verifying/constructive traces); — means the deep-dive declines to classify the system. Link points at the deep-dive; the taxonomies below group these rows by one axis at a time.

Foundations (academic literature) ​

SubjectVenue / yearOne lineStatusLink
Build Systems à la CarteICFP 2018; JFP 2020The scheduler × rebuilder design space this catalog is organized byreviewedà la carte
PIE (Konat et al.)ASE 2018Scalable incremental building with dynamic task dependenciesreviewedPIE
Build maintenance (McIntosh et al.)EMSE 2015Large-scale empirics of build-technology choice vs maintenance cost (author preprint)reviewedbuild maintenance
Perfect Dependencies (Spall et al.)OOPSLA 2020Speculative script execution with hazard checking (Rattle)reviewedperfect dependencies
Nix thesis + NixOS (Dolstra et al.)2006; JFP 2010The purely functional deployment model underneath the Nix storereviewedNix thesis

Engines and executors (industry) ​

SystemSchedulerRebuilderStatusLink
BuildXLtopologicalverifying tracesreviewedBuildXL
Bazelrestartingconstructive tracesreviewed (+ monorepo Bazel)Bazel
Buck2suspendingverifying tracesreviewed (+ monorepo Buck2)Buck2
build2topological (recursive)mtime dirty bit + depdbreviewedbuild2
Pleasesuspendingverifying tracesreviewed (+ monorepo Please)Please
Ninjatopologicalverifying traces (qualified)reviewed (+ monorepo Ninja)Ninja
GNU Maketopologicaldirty bitreviewed (+ monorepo Make)GNU Make
redosuspendingverifying step tracesreviewed (+ monorepo redo)redo
tuptopologicaldirty bit (observed)reviewed (+ monorepo tup)tup
Shakesuspendingverifying step tracesreviewedShake
Rattlespeculative (off-grid)constructive in spiritreviewedRattle
Earthlystatic DAG (via BuildKit)constructive traces + auto-skipreviewed (+ monorepo Earthly)Earthly
GNnot a cell (generator)—reviewed (+ monorepo GN)GN
Mesonnot a cell (generator)—reviewed (+ monorepo Meson)Meson
Boba (Fuchsia)——reviewed (short page: no standalone repo; in-tree at build/bazel/)Boba
Pants v2suspendingverifying step tracesreviewed (+ monorepo Pants)Pants
Moontopologicalconstructive (action cache)reviewed (+ monorepo moon)moon
BitBaketopologicalsignature-stamp dirty bit + sigdata tracereviewedBitBake
sbttopological + suspensionper-invocation dirty bit + action cachereviewed (+ monorepo sbt)sbt
BuildKittopologicalconstructive tracesreviewedBuildKit

Nix ecosystem ​

SubjectOne lineStatusLink
nixceptionREAPI actions bridged into recursive-nix derivations, deduplicated by the storereviewednixception
nix-ninjaNinja graphs translated edge-by-edge into content-addressed derivationsreviewednix-ninja
sandstonePer-module Haskell derivations emitted by a build (object/interface split)reviewedsandstone
drowsenix-instantiate + crate2nix as build steps emitting derivationsrevieweddrowse
dgdGo builds planned from the compiler's dry run via dynamic derivationsrevieweddgd
nixgggcc/g++ invocations intercepted into per-invocation derivationsreviewednixgg
nix-cargo-unitCargo unit graph rendered as per-unit Nix derivationsreviewednix-cargo-unit
MakeNixA Makefile expanded into one derivation per object file, mid-buildreviewedMakeNix
Nix dynamic derivationsZakaria's four posts + RFC 92 + the NixOS/nix sources: derivations producing derivationsrevieweddynamic derivations

Themes (synthesis) ​

Each page synthesizes across the deep-dives above plus its own primary sources; claims derived rather than directly sourced are marked Catalog inference on the page itself.

Theme pageQuestion it answersStatus
Sandboxing overheadsWhat do ptrace/seccomp, FUSE, namespaces, Landlock, and eBPF cost, and what do they miss?reviewed
Dynamic deps, distributedCan dynamically discovered dependencies survive remote execution correctly?reviewed
Dependency pruningHow are strict-deps violations and unused edges found and removed?reviewed
Graph auto-generationCan correct build definitions be synthesized from observed execution?reviewed
Semantic cachingWhen can a cache key ignore bytes — interface hashing and its risks?reviewed
Daemon compilersWhat do long-lived compilers keep in memory, and what must hit disk?reviewed
Link-time pruningHow do mold/lld, --gc-sections, ICF, and ThinLTO interact with the DAG?reviewed
Compile-time executionWhere do macros, CTFE, and build.rs sit relative to the sandbox?reviewed
CAS evictionWhat should a content-addressed cache keep, and in what order does it discard?reviewed
Cross-language DAGsWhat unifies protobuf, FFI, and toolchain transitions in one graph?reviewed
Speculative executionWhat is shipped speculation (Rattle, dynamic execution) vs literature?reviewed
Formal verificationWhat has actually been mechanized about build correctness?reviewed
ReproducibilityWhich nondeterminism sources remain, and which tools detect them?reviewed
ProvenanceWhat do engines emit for SLSA/in-toto today — and who signs it?reviewed

Taxonomy ​

Three re-cuts of the same twenty industry rows, one axis each. The five foundations are papers about the grid rather than rows in it, and the nine Nix projects are satellites that add no scheduler or rebuilder of their own (comparison §1.2), so neither group is re-cut here. Every placement, and every qualifier beside it, is the linked page's own classification, stated in its Analysis spine (or its numbered Task model & scheduling, Rebuilding & correctness, Dependency discovery) sections; the vocabulary is concepts §2–§5. Where a page declines to classify, the qualifier says so instead of forcing the row into a bucket.

By scheduler ​

Does the engine order a graph it already knows, restart work it could not finish, or suspend a caller until a late dependency arrives?

SchedulerWhat the pages saySystems
TopologicalA complete graph, then a ready set, a walk, or dataflow over the edgesBuildXL, build2, Ninja, GNU Make, tup, Moon, BitBake, Earthly (dataflow), BuildKit (demand-driven dataflow, not a topological sort)
RestartingA function that cannot get a dependency returns, is re-invoked, and repeats its workBazel, Boba (the Bazel half only; the GN/Ninja half is topological)
SuspendingA caller blocks and resumes when the dependency arrives; no work is repeatedBuck2, Please, redo, Shake, Pants, sbt (topological Execute plus Left(target) suspension)
Off-gridNo key, target or fetch; the author's order weakened by speculationRattle
Not a schedulerBuilds a description, then exitsGN (task-description compiler), Meson (never schedules)

Nine topological, two restarting, six suspending, one off-grid, two not schedulers: twenty rows. The qualifiers that keep a composite off its cell — the missing second half of Boba, BuildKit's dataflow, sbt's suspension — are argued on the linked pages.

By rebuilder ​

What does the engine consult to decide a key is current, and what does it keep for next time?

RebuilderWhat the pages saySystems
Dirty bitOne bit or one mtime per key; no early cutoff of its ownGNU Make, tup (the read set is the trace), sbt ("no memo yet", once per invocation)
Verifying tracesRecorded dependencies are re-checked; outputs stay where they areBuildXL, Buck2, build2 (an mtime dirty bit refined by depdb — its nearest cell), Please, Ninja (command hash; inputs by mtime), redo, Shake, Pants, BitBake (nearest cell; currency is stamp existence, sigdata is the trace)
Constructive tracesThe key maps to a reusable result or snapshotBazel (constructive in memory, verifying locally), Boba, Earthly (--auto-skip, "a dirty bit in all but name"), Rattle (constructive in spirit), Moon (one key; no content early cutoff), BuildKit (the value is a snapshot)
None (generator)No rebuild decision for build outputsGN (only its own regeneration is a dirty bit), Meson (delegates to Ninja; the delegated trace "holds no hashes")

Three dirty-bit systems, nine verifying-trace systems, six constructive-trace systems, two generators: twenty rows. Composites are placed by the mechanism each page says decides correctness; sbt's action cache and Earthly's --auto-skip are noted, not promoted to a bucket. Both generators delegate rebuilding to Ninja, whose cell they inherit in practice without occupying it.

These buckets identify base mechanisms rather than forbid extensions. Tup adds opt-in output comparison, and a GNU Make recipe that preserves an unchanged output's timestamp can avoid downstream execution. The behavioral evidence checks the latter case; the comparison retains these qualifications.

By dependency discovery ​

Where does the edge set come from: the description, the tool's own report, or observation?

DiscoveryWhat the pages saySystems
DeclaredThe description names inputs and outputs; nothing observes readsBazel (two narrow exceptions), Buck2, Please, GNU Make, redo (at runtime, by the script), Shake (by execution), GN, Moon, sbt, BuildKit, Earthly, Boba
InferredThe engine parses the tool's own output or the source textNinja (depfile/.ninja_deps, dyndep), build2 (the preprocessed include list), Meson (depfile, then dyndep), Pants (source parsing)
TracedReads are observed at the syscall boundary and become the graphRattle
HybridDeclarations are checked or extended by observationBuildXL, tup, BitBake ([file-checksums] plus the code parser)

Twelve declared, four inferred, one traced, three hybrid: twenty rows.

Catalog inference: the four buckets are this catalog's, not the pages': compiler-emitted and source-parsed both sit under inferred, and hybrid keeps comparison §2.3's sense — declarations plus observation — rather than "any two mechanisms". Two declared rows carry a stated exception: GN records its own parser's reads, and Earthly expands COPY patterns statically. Both stay in the declared row, noted rather than promoted.


Milestones ​

When a capability landed, in the words and dates of the deep-dives and papers on disk. A release date, a paper's venue year, and a document's own date are each recorded as the page states them; nothing here is inferred from a version number.

DateCapability milestoneStated in
2004–2006KDE moves from Autotools to CMake: the CMake build exists experimentally from late 2004, and the switchover is "the steep slope upwards in CMake and downwards in Autotools in early 2006"Build maintenance
2006-01-18Nix — The Purely Functional Software Deployment Model defended: derivations, the store, and deep constructive tracesNix thesis
2010NixOS — the same model at distribution scale; a 1,036-derivation system graph measured in May 2010Nix thesis
2014CloudMake (FM 2014) — the earliest verified artifact from a deployed industrial build system, in DafnyFormal verification
2015Build maintenance (EMSE 20(6)) — build-technology choice measured against maintenance costBuild maintenance
2015Pluto (OOPSLA 2015) — the build algorithm PIE implementsPIE
2016BuildXL's stated motive: an Office-client fork took about 90 hours to build and release to dogfoodBuildXL
2017-06-28Bazel unused_deps — strict deps introduced so unused edges can be removedDependency pruning
2018Build Systems à la Carte (ICFP 2018) — the scheduler × rebuilder grid this catalog is organized byÀ la carte
2018PIE (ASE 2018) — scalable incremental building with dynamic task dependencies (reqTasks)PIE
2019À la carte → Coq (CoqPL 2019) — the Haskell abstractions translated to Coq, reported as work in progressFormal verification
2019-02-01Nix RFC 92 — dynamic derivations proposedNix dynamic derivations
2019-04-17Rattle 0.1 — the forward, traced model shipped as a tool; 0.2 follows on 2020-05-27Rattle
2020À la carte (JFP 30, e11) — the journal version whose vocabulary every page followsConcepts
2020Perfect Dependencies (OOPSLA 2020) — traced dependencies with hazard checking, at 7% Linux / 46% Windows overheadPerfect dependencies
2022Rattle in Agda — mechanised memoization, hazard checks and speculative reorderingFormal verification
2022Forward Build Systems, Formally (CPP 2022) — the forward model proved, not only testedSpeculative execution
2022-08-29Fuchsia RFC-0186 reviewed — Bazel adopted (Boba); GN/Ninja stays the outer build during the migrationBoba
2022–2026Rust tracked_env tracked since 2022 but still unstable in 2026, so a macro's env and file reads stay outside rustc's dep-infoCompile-time execution
2023-09-20Nix 2.18 ships builtins.outputOf — the first shipped surface for dynamic derivationsNix dynamic derivations
2024–25Nix language in Rocq — Mininix/NixLang semantics mechanised, as an interpreter rather than a build engineFormal verification
2025-03-11MakeNix post published — a Makefile expanded into per-object derivations mid-build (clone dated 2025-03-12)MakeNix
2025-07-16Earthly v0.8.16, the final release; Cloud and Satellites shut down the same dayEarthly
2026-01-19Shake 0.19.9 — the built/changed verifying trace current at review timeShake
2026-08-10Meson 1.12.0 — CACHEDIR.TAG written on setup and regenerate, treating the build directory as a cacheMeson
2026-09-13nixception 0.6.1 — REAPI actions bridged into recursive-nix derivationsnixception
~2027mold — A Massively Parallel Linker (ASPLOS 2027, a preprint at review time): the linker as the build graph's coarsest taskLink-time pruning

NOTE

~ marks the one row whose venue has not been held — the mold paper's ASPLOS 2027 — and 2022–2026 is an interval the compile-time page states as still open. Everything else is a date the cited page prints: a release (2025-07-16, 2026-01-19, 2026-08-10, 2026-09-13), a venue year, or a document date (2019-02-01, 2022-08-29, 2025-03-11). The tree's own **Last reviewed:** dates are review dates, not capability dates, and are omitted.


Quick navigation ​

Five reading paths; each ends at the page where the decision is made.

Concepts explains the model and implementation boundaries; comparison synthesizes the research. Read method for evidence limits, behavioral-evidence for executable observations, and sparkles for the separate application analysis.


Sources ​

Primary sources are cloned under $REPOS/build-systems-research/src/ (33 symlinks to canonical clones, each pinned by 40-char SHA in that tree's MANIFEST.md) and $REPOS/papers/build-systems/ (7 PDFs with SHA256s in its MANIFEST.md, including one author preprint). Each deep-dive cites the exact files it opened.