The opt-dist binary provides a heavily optimized build pipeline specifically for rustc and LLVM artifacts. It is designed for two primary use cases:
- Benchmarking: Generating artifacts for use by the
perf.bot. - Distribution: Creating optimized builds for final distribution to users.
Unlike the standard bootstrap process, opt-dist is a separate tool because it requires complex orchestration, including multiple bootstrap invocations, forced rebuilds of specific artifacts, and the ability to bypass the standard bootstrap caching mechanism to apply advanced optimizations.