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







