Creating C++ Toolchains Easily
summary
New rules_cc toolchain mechanism defines C++ toolchains as rule-based use labels not strings mappings: a cc_toolchain points to a cc_tool_map that maps action types (C compile, C++ compile, link) to tools like clang, lld, ar and their data (built‑in headers). Toolchains add ordered args and features to expand variables into command lines, catching typos at build file parse time. It’s already deployed in Pigweed and rule_cc CI, supports Linux/Mac and Raspberry Pi Pico cross‑builds, and largely works though an experimental shim and migration docs remain.
AI-written summary · about
chapters (7)
- 0:00C++ toolchains intro
- 7:10Legacy toolchain problems
- 10:20New config basics
- 16:37Core toolchain constructs
- 22:13Adoption and future
- 24:23Q&A: Migration testing
- 30:23Q&A: Compatibility safety
related talks
53mStandard C++ Toolset
32mOpen Source C/C++ Embedded Toolchains Using LLVM
54mA look at C++ through the glasses of a language tool
01h 32mClosing Keynote: C++ Development Tools: Past, Present and Future
24mRefactoring Legacy Codebases with LibTooling
57mKeynote: How To Address 7 Major C++ Pain Points with Tools
08mLightning Talk: Coccinelle for C++
01h 03mCLANG + C2 - Engineering/Futures/Measurements
