Summary
This episode explores Unity builds, a compilation technique where multiple C++ source files are concatenated into a single file before compilation. Jason demonstrates how to enable Unity builds in CMake and shares benchmark results from a real project, showing up to 2x faster build times when combining Unity builds with Link Time Optimization (LTO). He explains how Unity builds offer the compiler better cross-translation unit visibility and convert One Definition Rule (ODR) violations from undefined behavior to compile errors.