Interoperating Bazel and Other Build Systems
summary
MongoDB migrates a massive C++ codebase to Bazel while keeping SCons as the developer interface, supporting Windows/Mac/Linux, x86/arm/ppc/s390x and GCC/Clang/MSVC/Xcode. The repo is ~6.1 million lines with ~112 configuration options. Migration uses a bottom‑up conversion across ~1,200 libraries, builds everything in Bazel to leverage remote cache, avoids slow aquery loops by exporting Bazel linker inputs, and relies on icecream, ninja and a CI with 95–96% cache hit to keep builds fast.
AI-written summary · about
chapters (4)
related talks
34mBuilding Real-time Systems with Bazel
23mPolyglot Builds with Bazel
41mThe wait is over. How to successfully migrate to Bazel from Maven or Gradle
40mSix learnings in moving to a Bazel-based CI system + Q&A
01h 01mIntroduction to Bazel
23mWhy you need a build system, and why it should be Bazel
18mFusing Bazel
01h 31mBazel
